summaryrefslogtreecommitdiffstats
path: root/src/preview
AgeCommit message (Collapse)Author
2022-09-10fix preview width = 0 issueJeff Zhao
2022-08-31rework previews to have loading state as wellJeff Zhao
2022-08-31cargo clippyJeff Zhao
2022-08-31more fine grain error handling for previewing directoriesJeff Zhao
2022-08-13Sort options individual per tab (#191)DLFW
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.
2022-07-18increase performance by boxing values before sendingJeff Zhao
2022-07-01add ability to check whether a preview is outdatedJeff Zhao
2022-02-24Fix clippy warnings (#144)sushi-shi
2022-02-01code cleanup (#135)DLFW
* 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
2022-01-16cargo fmtJeff Zhao
2022-01-16rework file previews to have better argument handlingJeff Zhao
2022-01-03Continuous scrolling (#118)DLFW
* 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
2021-11-27cargo clippyJeff Zhao
2021-11-27add scrolling support to file previewJeff Zhao
2021-10-15deprecate skim over fzfJeff Zhao
2021-09-27code cleanupJeff Zhao
2021-09-26code cleanupJeff Zhao
2021-09-26cargo fmtJeff Zhao
2021-09-26file previews no longer continuously spawn threads for existing previewsJeff Zhao
- 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
2021-08-18replace tab characters with 8 spaces for file text previewsJeff Zhao
2021-06-24fix preview script being constantly called on files with no previews availableJeff Zhao
2021-06-23code cleanupJeff Zhao
- directory loading is also on separate thread now
2021-06-22rudimentary file preview supportJeff Zhao
- 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
2021-06-21refactor previewing codeJeff Zhao
- 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
2021-06-10add support for specifying new tab home pageJeff Zhao
- 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