From 8683e8d2ae8124a8b7a2a1b5c461bf51a930c4ce Mon Sep 17 00:00:00 2001 From: crozbo <35157367+crozbo@users.noreply.github.com> Date: Tue, 16 Mar 2021 01:37:09 +0100 Subject: [PATCH] Add binding for Ctrl+n and Ctrl+p (#17) Co-authored-by: crozbo --- src/engine.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine.rs b/src/engine.rs index fc6b4285f2756..ad52ffee9635a 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -364,6 +364,12 @@ impl Engine { KeyCode::Right => { self.run_edit_commands(&[EditCommand::MoveWordRight]); } + KeyCode::Char('p') => { + self.run_edit_commands(&[EditCommand::PreviousHistory]); + } + KeyCode::Char('n') => { + self.run_edit_commands(&[EditCommand::NextHistory]); + } _ => {} }, Event::Key(KeyEvent {