diff options
author | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-16 11:11:50 +0800 |
---|---|---|
committer | Sebastian Thiel <sthiel@thoughtworks.com> | 2019-06-16 11:13:54 +0800 |
commit | 251ea53bbd5072a7e7315c610cbb59540f93c7a9 (patch) | |
tree | caad678aa79b416c5d57300751976a7c5522204d /src | |
parent | 34274b108957e8819395d4bc38a9456be5372a2a (diff) |
Add 'h' and 'l' as alternative keybindings
Diffstat (limited to 'src')
-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 9782da2..3522720 100644 --- a/src/interactive/app/eventloop.rs +++ b/src/interactive/app/eventloop.rs @@ -109,8 +109,8 @@ impl TerminalApp { Char('O') => self.open_that(), Char(' ') => self.mark_entry(false), Char('d') => self.mark_entry(true), - Char('u') | Backspace | Left => self.exit_node(), - Char('o') | Char('\n') | Right => self.enter_node(), + Char('u') | Char('h') | Backspace | Left => self.exit_node(), + Char('o') | Char('l') | Char('\n') | Right => self.enter_node(), Ctrl('u') => self.change_entry_selection(CursorDirection::PageUp), Char('k') | Up => self.change_entry_selection(CursorDirection::Up), Char('j') | Down => self.change_entry_selection(CursorDirection::Down), diff --git a/src/interactive/widgets/help.rs b/src/interactive/widgets/help.rs index 2b855ec..88966be 100644 --- a/src/interactive/widgets/help.rs +++ b/src/interactive/widgets/help.rs @@ -103,10 +103,10 @@ impl HelpPane { { hotkey("j/<down>", "move down an entry", None); hotkey("k/<up>", "move up an entry", None); - hotkey("o/<enter>", "descent into the selected directory", None); + hotkey("o/l/<enter>", "descent into the selected directory", None); hotkey("<right>", "^", None); hotkey( - "u/<left>", + "u/h/<left>", "ascent one level into the parent directory", None, ); |