Skip to content

Commit

Permalink
more hotkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thiel committed Jun 5, 2019
1 parent f2e4504 commit eec9803
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/interactive/app/eventloop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl TerminalApp {
B: Backend,
R: io::Read + TermReadEventsAndRaw,
{
use termion::event::Key::{Char, Ctrl, Down, Esc, PageDown, PageUp, Up};
use termion::event::Key::{Backspace, Char, Ctrl, Down, Esc, PageDown, PageUp, Up};
use FocussedPane::*;

self.draw(terminal)?;
Expand Down Expand Up @@ -109,8 +109,8 @@ impl TerminalApp {
},
FocussedPane::Main => match key {
Char('O') => self.open_that(),
Char('u') => self.exit_node(),
Char('o') => self.enter_node(),
Char('u') | Backspace => self.exit_node(),
Char('o') | Char('\n') => self.enter_node(),
Ctrl('u') => self.change_entry_selection(CursorDirection::PageUp),
Char('k') => self.change_entry_selection(CursorDirection::Up),
Char('j') => self.change_entry_selection(CursorDirection::Down),
Expand Down
3 changes: 2 additions & 1 deletion src/interactive/widgets/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ impl ToplevelComponent for ReactHelpPane {
{
hotkey("j/<down>", "move down an entry");
hotkey("k/<up>", "move up an entry");
hotkey("o", "descent into the selected directory");
hotkey("o/<enter>", "descent into the selected directory");
hotkey("u", "ascent one level into the parent directory");
hotkey("<backspace>", "^");
hotkey("Ctrl + d", "move down 10 entries at once");
hotkey("<Page Down>", "^");
hotkey("Ctrl + u", "move up 10 entries at once");
Expand Down

0 comments on commit eec9803

Please sign in to comment.