mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-12-28 03:45:06 +00:00
Remove key bindings
This commit is contained in:
parent
5a2cbe0147
commit
e6879744c5
@ -89,15 +89,6 @@ Using [omf](https://github.com/oh-my-fish/oh-my-fish):
|
||||
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
|
||||
|
||||
### Environment variables
|
||||
|
10
init.fish
10
init.fish
@ -2,17 +2,7 @@ function zoxide-add --on-event fish_prompt
|
||||
zoxide add
|
||||
end
|
||||
|
||||
set -q ZOXIDE_KEY_BINDINGS
|
||||
or set -U ZOXIDE_KEY_BINDINGS 0
|
||||
|
||||
abbr -a zi "z -i"
|
||||
abbr -a za "zoxide add"
|
||||
abbr -a zq "zoxide query"
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user