From f1fc13ec8e2af583d0ce4eb541e260e9045c8cf2 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 17 Jan 2024 09:43:28 +0100 Subject: make `Shift+r` do more than 'r' It's more effort, which should be reflrected in the amount of work done as well, which I think is more intuitive. --- src/interactive/app/eventloop.rs | 4 ++-- src/interactive/widgets/help.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/interactive/app/eventloop.rs b/src/interactive/app/eventloop.rs index 002f953..2377cc0 100644 --- a/src/interactive/app/eventloop.rs +++ b/src/interactive/app/eventloop.rs @@ -293,8 +293,8 @@ impl AppState { Char('o') | Char('l') | Enter | Right => { self.enter_node_with_traversal(&tree_view) } - Char('R') => self.refresh(&mut tree_view, window, Refresh::Selected)?, - Char('r') => self.refresh(&mut tree_view, window, Refresh::AllInView)?, + Char('r') => self.refresh(&mut tree_view, window, Refresh::Selected)?, + Char('R') => self.refresh(&mut tree_view, window, Refresh::AllInView)?, Char('H') | Home => self.change_entry_selection(CursorDirection::ToTop), Char('G') | End => self.change_entry_selection(CursorDirection::ToBottom), PageUp => self.change_entry_selection(CursorDirection::PageUp), diff --git a/src/interactive/widgets/help.rs b/src/interactive/widgets/help.rs index 6bafe05..d5107dd 100644 --- a/src/interactive/widgets/help.rs +++ b/src/interactive/widgets/help.rs @@ -183,8 +183,8 @@ impl HelpPane { "Git-style glob search, case-insensitive.", Some("Search starts from the current directory."), ); - hotkey("r", "Refresh all items in the current view.", None); - hotkey("R", "Refresh only the selected item.", None); + hotkey("r", "Refresh only the selected item.", None); + hotkey("R", "Refresh all items in the current view.", None); spacer(); } title("Mark items pane"); -- cgit v1.2.3