diff options
author | Marc Cornellà <marc.cornella@live.com> | 2015-11-20 18:08:11 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2015-11-20 18:08:11 +0100 |
commit | 64e1252bd5789d24c09255da2f1e6f2881c8b6ec (patch) | |
tree | 2e1238aedc37be1aa4d1c578548291ed6a22a6c9 | |
parent | 5d8fd93caccd7eb074e27d33bf3c2427745ba299 (diff) | |
parent | c8e280f2ab8e7768b100e590c6836502d5cf8fb9 (diff) | |
download | zsh-64e1252bd5789d24c09255da2f1e6f2881c8b6ec.tar.gz zsh-64e1252bd5789d24c09255da2f1e6f2881c8b6ec.tar.bz2 zsh-64e1252bd5789d24c09255da2f1e6f2881c8b6ec.zip |
Merge pull request #4623 from apjanke/dircycle-remove-redundant-bindings
dircycle: remove redundant key bindings
-rw-r--r-- | plugins/dircycle/dircycle.plugin.zsh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/dircycle/dircycle.plugin.zsh b/plugins/dircycle/dircycle.plugin.zsh index 1e31105b1..8a406b54d 100644 --- a/plugins/dircycle/dircycle.plugin.zsh +++ b/plugins/dircycle/dircycle.plugin.zsh @@ -27,11 +27,11 @@ insert-cycledright () { zle -N insert-cycledright -# add key bindings for iTerm2 -if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then - bindkey "^[[1;6D" insert-cycledleft - bindkey "^[[1;6C" insert-cycledright -else - bindkey "\e[1;6D" insert-cycledleft - bindkey "\e[1;6C" insert-cycledright -fi
\ No newline at end of file +# These sequences work for xterm, Apple Terminal.app, and probably others. +# Not for rxvt-unicode, but it doesn't seem differentiate Ctrl-Shift-Arrow +# from plain Shift-Arrow, at least by default. +# iTerm2 does not have these key combinations defined by default; you will need +# to add them under "Keys" in your profile if you want to use this. You can do +# this conveniently by loading the "xterm with Numeric Keypad" preset. +bindkey "\e[1;6D" insert-cycledleft +bindkey "\e[1;6C" insert-cycledright |