diff --git a/vim-tmux-navigator.tmux b/vim-tmux-navigator.tmux index 4142f65..33250fa 100755 --- a/vim-tmux-navigator.tmux +++ b/vim-tmux-navigator.tmux @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# pseudo substring match by substituting the current command from the current commmand string +# pseudo substring match by substituting "s/g?(view|n?vim?x?)(diff)?$" from the current commmand string tmux bind-key -n C-k if-shell "[ '#{pane_current_command}' != '#{s/g?(view|n?vim?x?)(diff)?$//:#{pane_current_command}}' ]" "send-keys C-k" "select-pane -U" tmux bind-key -n C-j if-shell "[ '#{pane_current_command}' != '#{s/g?(view|n?vim?x?)(diff)?$//:#{pane_current_command}}' ]" "send-keys C-j" "select-pane -D" tmux bind-key -n C-h if-shell "[ '#{pane_current_command}' != '#{s/g?(view|n?vim?x?)(diff)?$//:#{pane_current_command}}' ]" "send-keys C-h" "select-pane -L"