mirror of
https://github.com/nushell/nushell
synced 2025-01-13 21:55:07 +00:00
Move history search to ctrl-x (#864)
This commit is contained in:
parent
bfb9822475
commit
fd9e380a1e
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ pub(crate) fn add_history_menu(line_editor: Reedline, config: &Config) -> Reedli
|
|||
fn add_menu_keybindings(keybindings: &mut Keybindings) {
|
||||
keybindings.add_binding(
|
||||
KeyModifiers::CONTROL,
|
||||
KeyCode::Char('i'),
|
||||
KeyCode::Char('x'),
|
||||
ReedlineEvent::UntilFound(vec![
|
||||
ReedlineEvent::Menu("history_menu".to_string()),
|
||||
ReedlineEvent::MenuPageNext,
|
||||
|
@ -135,7 +135,7 @@ fn add_menu_keybindings(keybindings: &mut Keybindings) {
|
|||
|
||||
keybindings.add_binding(
|
||||
KeyModifiers::CONTROL | KeyModifiers::SHIFT,
|
||||
KeyCode::Char('i'),
|
||||
KeyCode::Char('x'),
|
||||
ReedlineEvent::MenuPagePrevious,
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue