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:
parent
4e3edc7832
commit
56916f90d1
1 changed files with 10 additions and 0 deletions
|
|
@ -51,6 +51,16 @@ $env.config.keybindings = [
|
||||||
{send: Enter}
|
{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
|
name: open_editor
|
||||||
modifier: control
|
modifier: control
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue