failsafe workaround for pane switch not working in nested tmux

This commit is contained in:
Daniel Nägele committed 2013-06-28 21:12:22 +02:00
1 parent 268dacd289
commit f1312ef0af
1 file changed
+4 -6
+4 -6
View File
@@ -43,12 +43,10 @@ bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq v
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
bind -r C-h run "tmux send-keys C-h"
bind -r C-j run "tmux send-keys C-j"
bind -r C-k run "tmux send-keys C-k"
bind -r C-l run "tmux send-keys C-l"
bind -r C-\ run "tmux send-keys 'C-\\'"
bind -r C-h run "tmux select-pane -L"
bind -r C-j run "tmux select-pane -D"
bind -r C-k run "tmux select-pane -U"
bind -r C-l run "tmux select-pane -R"
bind -r C-Down resize-pane -D 2
bind -r C-Up resize-pane -U 2
bind -r C-Left resize-pane -L 2