diff options
| author | Ellie Huxtable <ellie@elliehuxtable.com> | 2023-02-25 23:29:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-25 23:29:59 +0000 |
| commit | c558da5bebfebf239dde867f36cc35d56849accf (patch) | |
| tree | 2e75e2c479fa1d89632eafd8119e084243bafa5e /docs/key-binding.md | |
| parent | Revert "Remove shortcut numbers (#708)" (#724) (diff) | |
| download | atuin-c558da5bebfebf239dde867f36cc35d56849accf.zip | |
Add fancy web docs (#725)
* Add initial site
* WIP again
* Replace docs with web docs
* Bring back translations
* Update README.md
* remove images
Diffstat (limited to 'docs/key-binding.md')
| -rw-r--r-- | docs/key-binding.md | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/docs/key-binding.md b/docs/key-binding.md deleted file mode 100644 index ecd9267f..00000000 --- a/docs/key-binding.md +++ /dev/null @@ -1,65 +0,0 @@ -# Key binding - -By default, Atuin will rebind both <kbd>Ctrl-r</kbd> and the up arrow. - -You can also disable either the up-arrow or <kbd>Ctrl-r</kbd> bindings individually, by passing -`--disable-up-arrow` or `--disable-ctrl-r` to the call to `atuin init`: - -``` -# Bind ctrl-r but not up arrow -eval "$(atuin init zsh --disable-up-arrow)" - -# Bind up-arrow but not ctrl-r -eval "$(atuin init zsh --disable-ctrl-r)" -``` - -If you do not want either key to be bound, either pass both `--disable` arguments, or set the -environment varuable `ATUIN_NOBIND` to any value before the call to `atuin init`: - -``` -## Do not bind any keys -# Either: -eval "$(atuin init zsh --disable-up-arrow --disable-ctrl-r)" - -# Or: -export ATUIN_NOBIND="true" -eval "$(atuin init zsh)" -``` - -You can then choose to bind Atuin if needed, do this after the call to init. - -# zsh - -Atuin defines the ZLE widget "\_atuin_search_widget" - -``` -export ATUIN_NOBIND="true" -eval "$(atuin init zsh)" - -bindkey '^r' _atuin_search_widget - -# depends on terminal mode -bindkey '^[[A' _atuin_search_widget -bindkey '^[OA' _atuin_search_widget -``` - -# bash - -``` -export ATUIN_NOBIND="true" -eval "$(atuin init bash)" - -# bind to ctrl-r, add any other bindings you want here too -bind -x '"\C-r": __atuin_history' -``` - -# fish - -``` -set -gx ATUIN_NOBIND "true" -atuin init fish | source - -# bind to ctrl-r in normal and insert mode, add any other bindings you want here too -bind \cr _atuin_search -bind -M insert \cr _atuin_search -``` |
