Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Show Filenames in Multishell Title #495
I wonder if it'd be worth limiting file names to 20 characters or something? Maybe something like:
local name = fs.getName( path ) if #name > 20 then name = name:sub(1, 17) .. "..." end if multishell and settings.get( "paint.multishell_title" ) == true then multishell.setTitle( multishell.getCurrent(), "paint (" .. name .. ")" ) end
This way really long file names won't fill the tab bar, but most file names will still display fine.