From fd9e380a1ec39be179e04d4c4ee4d8f333982005 Mon Sep 17 00:00:00 2001 From: JT <547158+jntrnr@users.noreply.github.com> Date: Thu, 27 Jan 2022 14:44:12 -0500 Subject: [PATCH] Move history search to ctrl-x (#864) --- src/reedline_config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reedline_config.rs b/src/reedline_config.rs index 85e3df649b..74994f913c 100644 --- a/src/reedline_config.rs +++ b/src/reedline_config.rs @@ -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, );