Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
* (src/config/theme/style.rs) Add hex parsing
Consulted with a friend who knows Rust better than me and was able
to implement a fix for https://github.com/kamiyaa/joshuto/issues/151
pretty quickly after that point
* (src/config/theme/style.rs) Reimplement
* (src/config/theme/style.rs) Reformat
* (src/config/theme/style.rs) Add missing comma
everything told me that `cargo fmt --all -- --check` would at least tell
me about this error. what???
|
|
Co-authored-by: kennycallado <kennycallado@hotmail.com>
|
|
Co-authored-by: kennycallado <kennycallado@hotmail.com>
|
|
|
|
|
|
|
|
* Add console shortcuts
* Add support for proportional page movements
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
Co-authored-by: Andrew Orazov <orazov.ae@phystech.edu>
|
|
* Fix: remove image preview on bulk rename
* cargo fmt
|
|
|
|
|
|
When changing from an image file to another file type, the last image
was not cleared with the given description.
|
|
|
|
The preview-removed-hook was called in each main loop cycle if no
preview area was shown and a removed-hook was configured.
|
|
|
|
|
|
|
|
|
|
When the size of the preview area changes, the "preview shown hook" is
called to give a chance to update the size and/or position of the
preview image.
|
|
|
|
|
|
* Calling preview removed hook when help page shown
* Better function names and documentation
* syntax fix
|
|
|
|
the default configuration files in repo
|
|
When the preview disappears, the "shown" hook script was spawned instead
of the "removed" hook script.
This mistake was not obvious with the preview-image recipe from the docs
which works also with the shown-script on remove.
|
|
merge commands/parent_directory.rs and commands/change_directory.rs into
one file
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* refactor image preview via ueberzug
* fix area not correct and calculating with borders
* remove area recalculation
* only process previews if preview shown and remove scripts are present in config
|
|
|
|
|
|
|