mirror of
https://github.com/nushell/nushell.git
synced 2025-01-12 01:09:05 +01:00
Move history search to ctrl-x (#864)
This commit is contained in:
parent
bfb9822475
commit
fd9e380a1e
@ -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 New Issue
Block a user