summaryrefslogtreecommitdiffstats
path: root/src/ui
AgeCommit message (Collapse)Author
2022-06-29cargo fmtJeff Zhao
2022-06-29rename TuiBackend to AppBackendJeff Zhao
- fix initial view not correctly offset
2022-06-27fix bulk_rename logic errorJeff Zhao
2022-06-27rename 'vsplit' to 'hsplit'Jeff Zhao
2022-06-22Bump `ansi-to-tui` to `0.6` and remove `tui_old` (#179)Noah Too
`ansi-to-tui` 0.6 uses the latest `tui`
2022-05-30fix some clippyJeff Zhao
2022-05-26add vsplit viewJeff Zhao
2022-05-26split up keymaps into different modesJeff Zhao
2022-05-14add multiple tui dependenciesJeff Zhao
- this should fix build
2022-05-04cargo fmtJeff Zhao
2022-05-04move input.rs to process_event.rsJeff Zhao
2022-04-20add H, L and M vim actionsJeff Zhao
2022-04-17code cleanupJeff Zhao
2022-04-10fix file preview showing a blank lineJeff Zhao
2022-04-09selected files now indented like rangerJeff Zhao
2022-04-09fix regular file styling not respecting theme config (#163)Jeff Zhao
- fix color not applying to entire row
2022-03-07fix file previews for no ansi colorsJeff Zhao
2022-03-05version bump 0.9.30.9.3Jeff Zhao
2022-03-05make ansi-to-tui optionalJeff Zhao
2022-02-25Add reversed autocompletion (#145)sushi-shi
2022-02-24Fix clippy warnings (#144)sushi-shi
2022-02-24Add console shortcuts (#142)sushi-shi
2022-02-23Add incremental search (#140)sushi-shi
2022-02-23Autocomplete first words as commands (#139)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-09default configuration for joshuto and for themes now read fromJeff Zhao
the default configuration files in repo
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-12-27cargo fmtJeff Zhao
2021-12-27fix crash if ansi to tui failsJeff Zhao
2021-12-27only process previews if preview shown and remove scripts are present in configJeff Zhao
2021-12-20remove area recalculationJeff Zhao
2021-12-20refactor image preview via ueberzugJeff Zhao
2021-12-20Add script hooks for image previews (#113)DLFW
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.
2021-12-15add dynamic number of columns (#111)Vinegret43
column_ratio property can now contain only 2 elements
2021-12-05fix printing line numbersJeff Zhao
2021-12-05add line numbers (#109)Vinegret43
* 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
2021-11-27cargo clippyJeff Zhao
2021-11-27add scrolling support to file previewJeff Zhao
2021-11-18Add syntax highlighting to file previews (#106)Noah Too
2021-11-09check width instead of lenJeff Zhao
2021-11-09Path shortener (#103)kennycallado
* feature shortens the path when it is longer than area.width Path.component approach Co-authored-by: kenny Callado <kennycallado@hotmail.com>
2021-10-27remove default config hardcode and use include_str! insteadJeff Zhao
- this fixes the default config not working
2021-10-20rework config structureJeff Zhao
2021-10-15deprecate skim over fzfJeff Zhao
2021-10-03refactor some codeJeff Zhao
- rename stuff
2021-10-02move comment into traitJeff Zhao
2021-10-02move key_command code out into separate moduleJeff Zhao
- make separate files for trait impls - make separate file for constants
2021-10-02Merge branch 'main' into devJeff Zhao
2021-10-02add basic support for command historyJeff Zhao
- move worker processing into input.rs - change readline to read_and_execute
2021-10-02Add a help page (#95)Vinegret43
* 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