Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
- file previews also honor max_preview_size option
- removed unnecessary return from cursor_move
- parent_cursor_move now works properly with preview loading
- reloading now retain directory sizes
|
|
|
|
|
|
|
|
- this should prevent excessive filesystem reading
and increase performance on slower storage mediums such as
network drives, mtpfs, etc.
|
|
- this command lets users exit to the current directory more
easily and more ergonomically
|
|
* own display style for invalid symlinks
* add link_invalid to default theme.toml
* footer shows link target in link style
|
|
|
|
|
|
- directory loading is also on separate thread now
|
|
- don't store preview if exit code is 1
|
|
- this currently has only been tested with text files
- no line formatting is done yet
- only prints the preview as a single line
- folder previews can now be pushed onto a separate thread if needed
|
|
- e.g. /root does not appear because we can't count
the number of items inside it
- add a space padding to the file size/directory size
|
|
The middle column shows the size of directories in terms of contained
files and sub-directories in the right label for each entry.
Invalid symlinks and hidden files/dirs are included in the count.
|
|
|
|
- add previewing loading trigger to mouse input as well
|
|
- event.rs is moved out of utils as its an integral part of the codebase
- load_child.rs has been replaced with preview module
- moved previewing logic inside run.rs instead of spreading it across multiple
commands
|
|
|
|
|
|
|
|
|
|
* encapsulate paging strategy
This commit introduces one central place where the “paging” (first entry
of a dir list shown in the UI) strategy is implemented.
This decreases the risk for copy-paste mistakes, makes it easier to
change it, and would make the implementation of a configurable paging
strategy easier.
* fix: correct new index on click for parent column
And a little refactoring of the code that handles the left click.
* fix: consider borders on left click
When selecting a dir entry with a left click of the mouse, the borders
were not considered, which led to
1. a faulty, constant y offset of 1 row
2. a faulty offset, which increased with each page scrolled down, due to
a wrong calculation of the content height
|
|
|
|
|
|
* Treat symlinks as normal files and dirs
* Dirs are recognized as dirs no matter is they are a symlink
(correct devicon)
* Permission flags shown in the footer are the permissions of the target
in case a symlink is selected
* Size of a symlinked file is the size of the target
* File display to be fixed: symlink arrow now just overrides the file
size, but both need to be shown one after the other
* Correctly show symlink arrow and file size next
This commit includes quite some refactoring. The shortening of the
left and right part of an entry in a dir list and the shortening of the
file name are separated into functions which don't directly write to the
buffer but just return strings. That way, they get testable and further
enhancements like different line modes should be easier to implement.
* fix review findings
* better file name truncation
File names are only truncated at grapheme border, while the width is
calculated on the actual nuber of terminal cells.
* more adequate test organization
* more code structure
|
|
|
|
|
|
- fixes: Issue #59
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- fix issue where folder preview is not loaded upon tab_switch
if the preview entry did not previously exist in history
|
|
- remove unused code and add #[allow(dead_code)]
|
|
|
|
|
|
|
|
|
|
- reduce sharing global variables between modules
|
|
|
|
- sort options is now nested under display options which
holds a lot of previously general options
- fix glob search not searching backwards
|
|
- rename some command configurations
|
|
- before pasting, joshuto will traverse the paths to determine
the total number of files that will need to be copied
|
|
|
|
|