Remove key bindings

This commit is contained in:
Alin Panaitiu 2020-03-08 18:19:56 +02:00
parent 5a2cbe0147
commit e6879744c5
No known key found for this signature in database
GPG Key ID: E3629673D6E15976
2 changed files with 0 additions and 19 deletions

View File

@ -89,15 +89,6 @@ Using [omf](https://github.com/oh-my-fish/oh-my-fish):
omf install https://github.com/ajeetdsouza/zoxide omf install https://github.com/ajeetdsouza/zoxide
``` ```
To enable key bindings you have to set the universal variable `ZOXIDE_KEY_BINDINGS` to 1 and restart the shell.
```fish
set -U ZOXIDE_KEY_BINDINGS 1
```
| Keybinding | Action |
| ---------- | -------------------------------------------------------------------------------- |
| <kbd>Alt</kbd>+<kbd>z</kbd> / <kbd></kbd>+<kbd>z</kbd> | Launch Zoxide in interactive mode |
## Configuration ## Configuration
### Environment variables ### Environment variables

View File

@ -2,17 +2,7 @@ function zoxide-add --on-event fish_prompt
zoxide add zoxide add
end end
set -q ZOXIDE_KEY_BINDINGS
or set -U ZOXIDE_KEY_BINDINGS 0
abbr -a zi "z -i" abbr -a zi "z -i"
abbr -a za "zoxide add" abbr -a za "zoxide add"
abbr -a zq "zoxide query" abbr -a zq "zoxide query"
abbr -a zr "zoxide remove" abbr -a zr "zoxide remove"
if set -q ZOXIDE_KEY_BINDINGS; and test "$ZOXIDE_KEY_BINDINGS" -eq 1
bind \ez 'z -i'
if bind -M insert >/dev/null 2>/dev/null
bind -M insert \ez 'z -i'
end
end