~hedy/dotfiles

f05b6aac4fc02ab0850c6a7fb03edc60f5d0302d — ~hedy 5 months ago 0547772
Nu: Add alt+{left,right,backspace} keybindings
1 files changed, 23 insertions(+), 0 deletions(-)

M .config/nushell/config.nu
M .config/nushell/config.nu => .config/nushell/config.nu +23 -0
@@ 11,6 11,29 @@ $env.config = {
    # color_config: {
    #     shape_filepath: cyan_underline
    # }
    keybindings: [
        {
            name: alt_backspace
            modifier: alt
            keycode: backspace
            mode: [emacs, vi_insert, vi_normal]
            event: { edit: backspaceword }
        }
        {
            name: alt_left
            modifier: alt
            keycode: left
            mode: [emacs, vi_insert, vi_normal]
            event: { edit: movewordleft }
        }
        {
            name: alt_right
            modifier: alt
            keycode: right
            mode: [emacs, vi_insert, vi_normal]
            event: { edit: movewordright }
        }
    ]
}

# Basics #########################################