From dd211c8bd39f22c25ead5ad898e38698ef2accb1 Mon Sep 17 00:00:00 2001 From: Ramon Fischer Date: Thu, 6 Oct 2022 22:13:45 +0200 Subject: [PATCH] correct comment --- README.md | 2 +- vim-tmux-navigator.tmux | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 15f27f4..1ceee61 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ Add the following to your `~/.tmux.conf` file: # Smart pane switching with awareness of Vim splits. # See: https://github.com/christoomey/vim-tmux-navigator -# pseudo substring match by substituting the current command from the current commmand string +# pseudo substring match by substituting "g?(view|n?vim?x?)(diff)?$" from the current commmand string 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" 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" 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" diff --git a/vim-tmux-navigator.tmux b/vim-tmux-navigator.tmux index 4142f65..0df9ada 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 "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"