Move history search to ctrl-x (#864)

This commit is contained in:
JT 2022-01-27 14:44:12 -05:00 committed by GitHub
parent bfb9822475
commit fd9e380a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
);