diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2024-01-17 09:43:28 +0100 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2024-01-17 09:53:32 +0100 |
commit | f1fc13ec8e2af583d0ce4eb541e260e9045c8cf2 (patch) | |
tree | 1dcd5716582f96c6c330f451c90fc22e9a2d57b2 | |
parent | 99e53849dd6096d05ab4962e1ed5440efcae83f3 (diff) |
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.
-rw-r--r-- | src/interactive/app/eventloop.rs | 4 | ||||
-rw-r--r-- | 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"); |