Merge pull request #852 from nandalopes/fix-tmux-error
Fix C- tmux error
This commit is contained in:
@@ -27,7 +27,12 @@ bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
|
|||||||
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
|
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
|
||||||
bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
|
bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
|
||||||
bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
|
bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
|
||||||
bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
|
|
||||||
|
tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
|
||||||
|
if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
|
||||||
|
"bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\' 'select-pane -l'"
|
||||||
|
if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \
|
||||||
|
"bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'"
|
||||||
|
|
||||||
# Use vi keybindings for tmux commandline input.
|
# Use vi keybindings for tmux commandline input.
|
||||||
# Note that to get command mode you need to hit ESC twice...
|
# Note that to get command mode you need to hit ESC twice...
|
||||||
|
|||||||
Reference in New Issue
Block a user