mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-13 03:12:21 +01:00
Yet another dircycle fix (hopefully the last one)
The right directions are `-1` for left, `+0` for right cycling
This commit is contained in:
parent
175b4a8073
commit
7d30246d31
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
# dircycle plugin: enables cycling through the directory
|
# dircycle plugin: enables cycling through the directory
|
||||||
# stack using Ctrl+Shift+Left/Right
|
# stack using Ctrl+Shift+Left/Right
|
||||||
|
|
||||||
eval "insert-cycledleft () { zle push-line; LBUFFER='pushd -q +1'; zle accept-line }"
|
eval "insert-cycledleft () { zle push-line; LBUFFER='pushd -q -1'; zle accept-line }"
|
||||||
zle -N insert-cycledleft
|
zle -N insert-cycledleft
|
||||||
bindkey "\e[1;6D" insert-cycledleft
|
bindkey "\e[1;6D" insert-cycledleft
|
||||||
eval "insert-cycledright () { zle push-line; LBUFFER='pushd -q +0'; zle accept-line }"
|
eval "insert-cycledright () { zle push-line; LBUFFER='pushd -q +0'; zle accept-line }"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue