We still don't have up/down arrow keys. And we still don't have the ability to filter filenames by typing.
NYRESFK6T6NNVQRPVQEJP37Z4XUOUDBQWWU7DMQ23Y3GX7U2A4XQC
if File_navigation.num_lines == nil then
File_navigation.num_lines = source.num_lines_for_file_navigator()
end
App.color(Menu_background_color)
love.graphics.rectangle('fill', 0,Menu_status_bar_height, App.screen.width, File_navigation.num_lines * Editor_state.line_height)
local x,y = 5, Menu_status_bar_height
function add_file_to_menu(s, cursor_highlight)
function source.num_lines_for_file_navigator()
local result = 1
local x = 5
for i,filename in ipairs(File_navigation.candidates) do
local width = App.width(to_text(filename))
if x + width > App.screen.width - 5 then
result = result+1
x = 5 + width
else
x = x + width + 30
end
end
return result
end
function add_file_to_menu(x,y, s, cursor_highlight)