- Buffer::get{,_mut}() are deprecated, use Buffer[] instead.
They panic under the same conditions.
- Define dummy cursor actions and a window size for TestBackend.
- Frame::size() is deprecated, use Frame::area() instead.
This commit updates several packages to their latest versions
- unicode-width
- nix
- jwalk
- tui
- crosterm
And fixes some code to use the API of the latest packages
* init checkin
* tests now compile
* Update linux.rs
* fixed linux build
* fmt
* most tests pass
* all tests pass
* reinstate delete after test
* remove old snaps
* oops on the crossterm dep
* fix fmt
* add windows test to travis
* travis windows tests linux messed up term after q
* fmt
* clean as per PR
* more pr clean
* tests done on windows
* oops
* non windows tests
* more cleanup
* fmt
* one last clean
* linux->unix
* linux->unix
* style(cleanup): minor fixes
* style(cleanup): moar minor fixes
Co-authored-by: Aram Drevekenin <aram@poor.dev>
* Add installation instructions with NIX on OX
We can install diskonaut on OSX using NIX too.
* docs(readme): refer to nix section
Co-authored-by: Aram Drevekenin <aram@poor.dev>
* Change delete key to backspace
* Add BACKSPACE as delete key within snap tests
* Readd delete key for warning modal
* Change key for warning modal to Backspace
* feat(app) implement a warning modal on deleting a file/folder while scanning
add keypress handler for warning_modal
update apps ui state of warning modal
implement autoclose functionality for warningmodal
* remove auto close functionality from warning modal
* fix(controls): use delete key when loading
Co-authored-by: Aram Drevekenin <aram@poor.dev>
* feat(app): show confirm modal before exit
add keyEvent handler function for exiting mode
add Exiting variant to UiMode enum | add prompt_exit method
implement ExitingMode widget rendering
fix mixed UiState issue
* resolved requested changes
* feat(app) add confirm modal before exit
fix panic in modals when terminal-width=50
listen for all possible keys when user tries to exit
exit without confirmation in ScreenTooSmall mode
fix tests to be compatible with ConfirmModal Changes
* docs(readme): add gentoo installation info (#47)
* feat(ux): make enter select largest folder if nothing is selected (#45)
* Make enter select largest folder if nothing is selected
* Rename method
* Renamed and changed method to do what it originally said
* Efficiency improvements
* Added test for the feature
* Run cargo insta review
* Fixed len for assert_eq!
* Fixed asserts at end of test
* Run cargo insta review again
* docs(changelog): enter largest folder
* docs(readme): fix error in how it works
* feat(ui): show quit shortcut ('q') in the legend (#46)
* Add <q> shortcut in the legend
* Fix typo for description
* Use <arrows> instead of <hjkl> or <arrow keys>
* Apply fmt
* Merge main
* feat(navigation): keep a stack of visited items and make go_up use it (#53)
* Keep a stack up visited items and make go_up use it
This will allow us to keep track of where our previous selections were
so can can automatically select the parents when we go up in the
hierarchy.
Closes#48.
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
* Redo snapshot tests to fix failures
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
* style(naming): minor naming change for clarity
Co-authored-by: Aram Drevekenin <aram@poor.dev>
* fix(formatting): prevent crashes on files with multibyte characters (#51)
* Fix crash when truncating to middle of a character
* Fix alignment of file names with wide characters
* Respect use ::formatting convention
* docs(changelog): update recent changes
* chore(release): 0.4.0
* fix enter_largest_folder_with_no_selected_tile test and its snapshot
Co-authored-by: Aram Drevekenin <aram@poor.dev>
Co-authored-by: telans <telans@protonmail.com>
Co-authored-by: redzic <48274562+redzic@users.noreply.github.com>
Co-authored-by: Oleh <45392385+olehs0@users.noreply.github.com>
Co-authored-by: Daniel Egger <daniel@eggers-club.de>
Co-authored-by: Renée Kooi <renee@kooi.me>