From f330d852848305b002200e53cee3e10de8e4fb6a Mon Sep 17 00:00:00 2001 From: Patrick Sier Date: Thu, 15 Oct 2020 08:28:45 -0500 Subject: feat(ui): only show small files legend when visible (#75) * feat: only show small files legend when visible * refactor: add render_small_files_legend function --- ...ear_selection_when_moving_off_screen_edges.snap | 4 +- .../diskonaut__tests__cases__ui__delete_file.snap | 4 +- ...ts__cases__ui__delete_file_no_confirmation.snap | 2 +- ...aut__tests__cases__ui__delete_file_press_n.snap | 4 +- ...diskonaut__tests__cases__ui__delete_folder.snap | 4 +- ...__cases__ui__delete_folder_no_confirmation.snap | 2 +- ...sts__cases__ui__delete_folder_small_window.snap | 2 +- ...delete_folder_small_window_no_confirmation.snap | 2 +- ...__ui__delete_folder_with_multiple_children.snap | 4 +- ...der_with_multiple_children_no_confirmation.snap | 2 +- .../diskonaut__tests__cases__ui__eleven_files.snap | 4 +- .../diskonaut__tests__cases__ui__empty_folder.snap | 4 +- .../diskonaut__tests__cases__ui__enter_folder.snap | 4 +- ...ests__cases__ui__enter_folder_medium_width.snap | 4 +- ...sts__cases__ui__enter_folder_small_width-2.snap | 2 +- ...tests__cases__ui__enter_folder_small_width.snap | 4 +- ...enter_largest_folder_with_no_selected_tile.snap | 4 +- .../diskonaut__tests__cases__ui__esc_to_go_up.snap | 4 +- ...ut__tests__cases__ui__files_with_size_zero.snap | 4 +- .../diskonaut__tests__cases__ui__medium_width.snap | 4 +- ...sts__cases__ui__move_down_and_enter_folder.snap | 4 +- ...sts__cases__ui__move_left_and_enter_folder.snap | 4 +- ...ts__cases__ui__move_right_and_enter_folder.snap | 4 +- ...tests__cases__ui__move_up_and_enter_folder.snap | 4 +- ..._tests__cases__ui__noop_when_entering_file.snap | 4 +- ..._ui__noop_when_pressing_esc_at_base_folder.snap | 4 +- ...cases__ui__permission_denied_when_deleting.snap | 4 +- ...ssion_denied_when_deleting_no_confirmation.snap | 2 +- ..._ui__pressing_delete_with_no_selected_tile.snap | 4 +- .../diskonaut__tests__cases__ui__small_width.snap | 4 +- ...s__cases__ui__small_width_long_folder_name.snap | 4 +- ..._cases__ui__two_large_files_one_small_file.snap | 4 +- ..._tests__cases__ui__zoom_into_small_files-6.snap | 2 +- src/ui/bottom_line.rs | 45 ++++++++++++++++------ src/ui/display.rs | 39 +++++++++++++++---- 35 files changed, 123 insertions(+), 77 deletions(-) diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__clear_selection_when_moving_off_screen_edges.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__clear_selection_when_moving_off_screen_edges.snap index ee4ed28..d65a9f8 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__clear_selection_when_moving_off_screen_edges.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__clear_selection_when_moving_off_screen_edges.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_file.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_file.snap index a866a43..8eb2359 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_file.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_file.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_file_no_confirmation.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_file_no_confirmation.snap index b6b5f1e..eda1008 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_file_no_confirmation.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_file_no_confirmation.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────┘ - (x = Small files) + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_file_press_n.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_file_press_n.snap index 826fed0..70fc896 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_file_press_n.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_file_press_n.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder.snap index b93f282..fdcb6d9 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_no_confirmation.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_no_confirmation.snap index 7d6c399..62c868d 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_no_confirmation.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_no_confirmation.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────┘ - (x = Small files) + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_small_window.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_small_window.snap index 8ce895e..e8ab39a 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_small_window.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_small_window.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ └──────────────────────────────────────────────────────────┘ - (x = Small files) + ←↓↑→//: navigate, : del diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_small_window_no_confirmation.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_small_window_no_confirmation.snap index 2738e46..6d43751 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_small_window_no_confirmation.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_small_window_no_confirmation.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ └──────────────────────────────────────────────────────────┘ - (x = Small files) + ←↓↑→//: navigate, : del diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_with_multiple_children.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_with_multiple_children.snap index 78627e0..1fe0262 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_with_multiple_children.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_with_multiple_children.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_with_multiple_children_no_confirmation.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_with_multiple_children_no_confirmation.snap index 70bb43b..2dc9e33 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_with_multiple_children_no_confirmation.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__delete_folder_with_multiple_children_no_confirmation.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────────────────────────────────────┘ - (x = Small files) + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__eleven_files.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__eleven_files.snap index 780b77f..75fb53f 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__eleven_files.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__eleven_files.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ │ 8.0K (2%) │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────┴───────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__empty_folder.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__empty_folder.snap index ec97ce5..7de0d86 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__empty_folder.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__empty_folder.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│ │████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder.snap index d6b31a4..c841217 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder_medium_width.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder_medium_width.snap index 33d6acd..a0f5260 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder_medium_width.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder_medium_width.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────┘ - (x = Small files) - ←↓↑→//: navigate, : del + + ←↓↑→//: navigate, : del diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder_small_width-2.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder_small_width-2.snap index 68035d2..00dd5d2 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder_small_width-2.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder_small_width-2.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[1]" - subfolder_with_quite_a_long_name + SELECTED: subfolder_with_quite_a_long_name (8.0K, 1 files) diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder_small_width.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder_small_width.snap index 66ec93d..01ecc22 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder_small_width.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_folder_small_width.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ └──────────────────────────────────────────────────────────┘ - (x = Small files) - ←↓↑→//: navigate, : del + + ←↓↑→//: navigate, : del diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_largest_folder_with_no_selected_tile.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_largest_folder_with_no_selected_tile.snap index 886027f..75fae39 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_largest_folder_with_no_selected_tile.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__enter_largest_folder_with_no_selected_tile.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__esc_to_go_up.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__esc_to_go_up.snap index c347f21..414b243 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__esc_to_go_up.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__esc_to_go_up.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__files_with_size_zero.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__files_with_size_zero.snap index ceea433..0f95845 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__files_with_size_zero.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__files_with_size_zero.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__medium_width.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__medium_width.snap index 27809b9..ce1ec7c 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__medium_width.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__medium_width.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ └──────────────────────────────────────────────────────────┘ - (x = Small files) - ←↓↑→//: navigate, : del + + ←↓↑→//: navigate, : del diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_down_and_enter_folder.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_down_and_enter_folder.snap index 5effe23..2426dc3 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_down_and_enter_folder.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_down_and_enter_folder.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_left_and_enter_folder.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_left_and_enter_folder.snap index fd84c77..74612c3 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_left_and_enter_folder.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_left_and_enter_folder.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_right_and_enter_folder.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_right_and_enter_folder.snap index 9209f62..2d4a553 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_right_and_enter_folder.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_right_and_enter_folder.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_up_and_enter_folder.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_up_and_enter_folder.snap index d009bff..3570797 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_up_and_enter_folder.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__move_up_and_enter_folder.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__noop_when_entering_file.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__noop_when_entering_file.snap index 24d0d75..28455f8 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__noop_when_entering_file.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__noop_when_entering_file.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__noop_when_pressing_esc_at_base_folder.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__noop_when_pressing_esc_at_base_folder.snap index 793d680..24725cd 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__noop_when_pressing_esc_at_base_folder.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__noop_when_pressing_esc_at_base_folder.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__permission_denied_when_deleting.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__permission_denied_when_deleting.snap index a8123c9..2ef0692 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__permission_denied_when_deleting.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__permission_denied_when_deleting.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__permission_denied_when_deleting_no_confirmation.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__permission_denied_when_deleting_no_confirmation.snap index 5929993..65cb766 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__permission_denied_when_deleting_no_confirmation.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__permission_denied_when_deleting_no_confirmation.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ - (x = Small files) + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__pressing_delete_with_no_selected_tile.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__pressing_delete_with_no_selected_tile.snap index 1446c1e..f777a10 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__pressing_delete_with_no_selected_tile.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__pressing_delete_with_no_selected_tile.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__small_width.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__small_width.snap index fa7132e..6b01e72 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__small_width.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__small_width.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ └────────────────────────────────────────────────┘ - (x = Small files) - ←↓↑→//: navigate, : del + + ←↓↑→//: navigate, : del diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__small_width_long_folder_name.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__small_width_long_folder_name.snap index 943ff57..22bb51c 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__small_width_long_folder_name.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__small_width_long_folder_name.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ └────────────────────────────────────────────────┘ - (x = Small files) - ←↓↑→//: navigate, : del + + ←↓↑→//: navigate, : del diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__two_large_files_one_small_file.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__two_large_files_one_small_file.snap index 957b46a..cbf86a4 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__two_large_files_one_small_file.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__two_large_files_one_small_file.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[0]" │ │ │ │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────────────────────────────┘ - (x = Small files) - - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit + + - move around, - enter folder, - parent folder, - delete, <+/-/0> - zoom in/out/reset, - quit diff --git a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__zoom_into_small_files-6.snap b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__zoom_into_small_files-6.snap index dc91355..0c7bf62 100644 --- a/src/tests/cases/snapshots/diskonaut__tests__cases__ui__zoom_into_small_files-6.snap +++ b/src/tests/cases/snapshots/diskonaut__tests__cases__ui__zoom_into_small_files-6.snap @@ -50,6 +50,6 @@ expression: "&terminal_draw_events_mirror[5]" │xxxxxx │xxxxxx ┴ - + (x = Small files)