File manager fixes
Created by: xTibor
Changes:
- The code now use absolute paths internally instead of relative ones.
- Inaccessible folders (for example:
file:/root/
) now have a../
entry. (Consequence of the first fix.) - Rewritten some code to use
.enumerate()
instead of counter variables. Makes the code cleaner. - Removed dead code from the mouse event handler.
- The input paths are now sanitized.
- The jump to file feature now redraws the window. And cycles between the files when more of them have the same leading character.
- The Home/End button events now redraw the window.
- The file selection index is now initialized to 0 when entering folders.
- Added icons for TrueType fonts.
I hope I didn't borked anything while making these changes.