nu: Add dot-repeat key mapping

We have to manually enable the <a-.> keybinding for nushell, which
emulates the 'insert last token of last command' functionality of e.g.
zsh.
This commit is contained in:
Marty Oehme 2025-10-18 12:58:43 +02:00
parent 4e3edc7832
commit 56916f90d1
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -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