Files
diskonaut/src/ui/modals/error_box.rs
Mehdi Mohseni 2a3e2b635c feat(ui): add an "Are you sure you want to quit?" modal (#44)
* 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>
2020-06-27 12:48:54 +02:00

2.4 KiB