From 715a697972710ba36f8879866213a60475c338e7 Mon Sep 17 00:00:00 2001 From: amtoine Date: Fri, 14 Jul 2023 09:59:51 +0200 Subject: [PATCH] remove the *mode*-specific bindings, e.g. `` in *emacs* this commit also adds the `help_menu` binding on `` --- .../src/sample_config/default_config.nu | 84 ++----------------- 1 file changed, 5 insertions(+), 79 deletions(-) diff --git a/crates/nu-utils/src/sample_config/default_config.nu b/crates/nu-utils/src/sample_config/default_config.nu index 6a53b6e5b..094eb4ff1 100644 --- a/crates/nu-utils/src/sample_config/default_config.nu +++ b/crates/nu-utils/src/sample_config/default_config.nu @@ -365,93 +365,19 @@ $env.config = { ] } } - { - name: completion_previous - modifier: shift - keycode: backtab - mode: [emacs, vi_normal, vi_insert] # Note: You can add the same keybinding to all modes by using a list - event: { send: menuprevious } - } { name: history_menu modifier: control keycode: char_r - mode: emacs + mode: [emacs, vi_insert, vi_normal] event: { send: menu name: history_menu } } { - name: next_page + name: help_menu modifier: control - keycode: char_x - mode: emacs - event: { send: menupagenext } - } - { - name: undo_or_previous_page - modifier: control - keycode: char_z - mode: emacs - event: { - until: [ - { send: menupageprevious } - { edit: undo } - ] - } - } - { - name: yank - modifier: control - keycode: char_y - mode: emacs - event: { - until: [ - {edit: pastecutbufferafter} - ] - } - } - { - name: unix-line-discard - modifier: control - keycode: char_u - mode: [emacs, vi_normal, vi_insert] - event: { - until: [ - {edit: cutfromlinestart} - ] - } - } - { - name: kill-line - modifier: control - keycode: char_k - mode: [emacs, vi_normal, vi_insert] - event: { - until: [ - {edit: cuttolineend} - ] - } - } - # Keybindings used to trigger the user defined menus - { - name: commands_menu - modifier: control - keycode: char_t - mode: [emacs, vi_normal, vi_insert] - event: { send: menu name: commands_menu } - } - { - name: vars_menu - modifier: alt - keycode: char_o - mode: [emacs, vi_normal, vi_insert] - event: { send: menu name: vars_menu } - } - { - name: commands_with_description - modifier: control - keycode: char_s - mode: [emacs, vi_normal, vi_insert] - event: { send: menu name: commands_with_description } + keycode: char_h + mode: [emacs, vi_insert, vi_normal] + event: { send: menu name: help_menu } } ] }