Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
Sort options (sort criterion, reversion, dir-first, and case-sensitivity)
are specific for each tab. Changing sort-options will not have any
affect on tabs other than the currently active one. Each new tab will
start with the default sort-options.
|
|
|
|
|
|
|
|
* code cleanup
Remove dead code and unused imports around preview features.
* Remove unused config option [display]show_preview
* Remove config option [preview]preview_images
* Remove unused imports
* Remove dead code and unused imports
|
|
|
|
|
|
* Continuous scrolling
The scrolling behavior is changed from “paging” to a continuous
scrolling. Joshuto keeps a buffer from the cursor to each end of the
list, which is configured by `[display] scroll_offset`. If the terminal
height is too small to keep the distance, the buffer is set to a value
that assures that the cursor is at least as close to the end the user is
scrolling towards as to the other end of the visible list.
If the window is resized and the cursor jumps out of scope, the viewport
is adjusted when changing the index next time.
Possible improvements:
* Issue a viewport update on terminal geometry change
* When scrolling down to the bottom, don't allow an empty section
beneath the last entry
* Update documentation for scroll_offset
* remove unused variable
* keep viewport index when replacing dirlist
* Don't keep copy of scroll_offset in JoshutoDirList
* sanity: remove obsolete parameter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
- directory loading is also on separate thread now
|
|
- 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
|
|
- 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
|
|
- inherit, start where preview tab started
- home, start in home dir
- root, start in root dir
- add rudimentary support for preview
- add preview script configuration
|