summaryrefslogtreecommitdiffstats
path: root/src/preview/preview_dir.rs
AgeCommit message (Collapse)Author
2024-03-10refactor code to reduce clonesJeff Zhao
- move a lot of methods into functions - printing icons is moved to rendering section
2024-03-10feat: add `case_sensitive_ext` option for mimetype, theme and icons (#497)Azad
* feat: add `case_sensitive_ext` option for mimetype, theme and icons * Clone `CONFIG_T` instead of initializing it twice * Reimplement without `CONFIG_T` as static ref * Clippy & fmt
2022-08-31rework previews to have loading state as wellJeff 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-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
2021-10-15deprecate skim over fzfJeff Zhao
2021-09-27code cleanupJeff 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-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