add nu section to keybind docs (#881)
This commit is contained in:
parent
b2fb5e6604
commit
e222b59812
1 changed files with 24 additions and 0 deletions
|
@ -66,6 +66,29 @@ bind \cr _atuin_search
|
||||||
bind -M insert \cr _atuin_search
|
bind -M insert \cr _atuin_search
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# nu
|
||||||
|
|
||||||
|
```
|
||||||
|
set-env ATUIN_NOBIND = true
|
||||||
|
atuin init nu | save -f ~/.local/share/atuin/init.nu #make sure you created the directory beforehand with `mkdir ~/.local/share/atuin/init.nu`
|
||||||
|
source ~/.local/share/atuin/init.nu
|
||||||
|
|
||||||
|
#bind to ctrl-r in emacs, vi_normal and vi_insert modes, add any other bindings you want here too
|
||||||
|
let-env config = (
|
||||||
|
$env.config | upsert keybindings (
|
||||||
|
$env.config.keybindings
|
||||||
|
| append {
|
||||||
|
name: atuin
|
||||||
|
modifier: control
|
||||||
|
keycode: char_r
|
||||||
|
mode: [emacs, vi_normal, vi_insert]
|
||||||
|
event: { send: executehostcommand cmd: (_atuin_search_cmd) }
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Atuin UI shortcuts
|
## Atuin UI shortcuts
|
||||||
|
|
||||||
| Shortcut | Action |
|
| Shortcut | Action |
|
||||||
|
@ -91,3 +114,4 @@ bind -M insert \cr _atuin_search
|
||||||
| enter | Select highlighted item |
|
| enter | Select highlighted item |
|
||||||
| ⬇ (with no entry selected) | Return original or return query depending on settings |
|
| ⬇ (with no entry selected) | Return original or return query depending on settings |
|
||||||
| ⬇ | Select the next item on the list |
|
| ⬇ | Select the next item on the list |
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue