diff --git a/terminal/.config/nushell/config.nu b/terminal/.config/nushell/config.nu index 09c26e8..6413b50 100644 --- a/terminal/.config/nushell/config.nu +++ b/terminal/.config/nushell/config.nu @@ -55,6 +55,7 @@ $env.config.keybindings = [ {send: Enter} ] } + # reedline edits { name: insert_last_token modifier: alt @@ -80,10 +81,23 @@ $env.config.keybindings = [ keycode: char_s mode: [emacs vi_insert vi_normal] event: { - send: executehostcommand + send: ExecuteHostCommand cmd: "let cmd = (commandline); commandline edit (if $cmd starts-with sudo { $cmd | str replace -r '^sudo ' '' } else { 'sudo ' ++ $cmd });" } } + { + name: partial_history_complete + modifier: None + keycode: char_e + mode: [vi_normal] + event: { + until: [ + { send: HistoryHintWordComplete } + { edit: MoveWordRight } + ] + } + } + # file menus { name: run_zoxide modifier: alt