Skip to content

Commit

Permalink
Add binding for Ctrl+n and Ctrl+p (nushell#17)
Browse files Browse the repository at this point in the history
Co-authored-by: crozbo <crozbo@users.noreply.github.com>
  • Loading branch information
crozbo and crozbo authored Mar 16, 2021
1 parent 92459ce commit 8683e8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8683e8d

Please sign in to comment.