From 56916f90d1f4e3b17479e98a3b8d81a7575e2d36 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 18 Oct 2025 12:58:43 +0200 Subject: [PATCH] nu: Add dot-repeat key mapping We have to manually enable the keybinding for nushell, which emulates the 'insert last token of last command' functionality of e.g. zsh. --- terminal/.config/nushell/config.nu | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/terminal/.config/nushell/config.nu b/terminal/.config/nushell/config.nu index ebfefae..48a5fbb 100644 --- a/terminal/.config/nushell/config.nu +++ b/terminal/.config/nushell/config.nu @@ -51,6 +51,16 @@ $env.config.keybindings = [ {send: Enter} ] } + { + name: insert_last_token + modifier: alt + keycode: char_. + mode: ["emacs", "vi_normal", "vi_insert"] + event: [ + { edit: InsertString, value: "!$" } + { send: Enter } + ] + } { name: open_editor modifier: control