Age | Commit message (Collapse) | Author |
|
|
|
- fix initial view not correctly offset
|
|
|
|
|
|
`ansi-to-tui` 0.6 uses the latest `tui`
|
|
|
|
|
|
|
|
- this should fix build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- fix color not applying to entire row
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
the default configuration files in repo
|
|
* 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
|
|
|
|
|
|
|
|
|
|
|
|
This adds two configuration options, `preview_shown_hook_script`
and `preview_removed_hook_script` in the preview-section where the
user can configure external scripts which are called when a file preview
is shown or when the file preview widget disappears, respectively.
The `preview_shown_hook_script` gets the path of the file being previwed
as first argument and then the x and y coordinate and the width an
height of the preview area as second to fifth parameters.
To get the geometry information back from the UI rendering process, a
new struct `RenderResult` has been introduced which is given as mutable
reference to the rendering function.
The main-loop then checks for a changed preview and calls the hook
scripts.
Additionally, documentation has been added how these hooks can be used
to implement image previews.
|
|
column_ratio property can now contain only 2 elements
|
|
|
|
* add line numbers
add command to change line numbers displaying
* refactor line numbering code
* add navigating by line numbers
add NumberedExecute trait for Command
* fix line numbering margin bug
* add documentation for numbered commands
|
|
|
|
|
|
|
|
|
|
* feature
shortens the path when it is longer than area.width
Path.component approach
Co-authored-by: kenny Callado <kennycallado@hotmail.com>
|
|
- this fixes the default config not working
|
|
|
|
|
|
- rename stuff
|
|
|
|
- make separate files for trait impls
- make separate file for constants
|
|
|
|
- move worker processing into input.rs
- change readline to read_and_execute
|
|
* add basic help page functionality
change search_skim keybind
* refactor 'run' function, improve sorting
* add search functionality for help page
improve some comments in tui_help
|