diff options
| author | VuiMuich <jm.spam@gmx.net> | 2023-05-02 04:52:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-02 02:52:33 +0000 |
| commit | e222b598122759c6a7f4e2bbf5107470f8ad9ad7 (patch) | |
| tree | f1bab443d15815b81117ffac76606d156980dd4f | |
| parent | docs: Fix broken links in README.md (#920) (diff) | |
| download | atuin-e222b598122759c6a7f4e2bbf5107470f8ad9ad7.zip | |
add nu section to keybind docs (#881)
| -rw-r--r-- | docs/docs/config/key-binding.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/docs/config/key-binding.md b/docs/docs/config/key-binding.md index 3db4ab02..41470ec5 100644 --- a/docs/docs/config/key-binding.md +++ b/docs/docs/config/key-binding.md @@ -66,6 +66,29 @@ bind \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 | Shortcut | Action | @@ -91,3 +114,4 @@ bind -M insert \cr _atuin_search | enter | Select highlighted item | | ⬇ (with no entry selected) | Return original or return query depending on settings | | ⬇ | Select the next item on the list | + |
