From 801d97d2172e77ca7b20744721cfd09e7202c653 Mon Sep 17 00:00:00 2001 From: Andrei Stoica Date: Mon, 18 Mar 2024 14:56:07 -0400 Subject: [PATCH] navigation --- .tmux.conf##default | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.tmux.conf##default b/.tmux.conf##default index 3be9dff..29c084b 100644 --- a/.tmux.conf##default +++ b/.tmux.conf##default @@ -47,10 +47,10 @@ set-option -g renumber-windows on # See: https://github.com/christoomey/vim-tmux-navigator is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|l?n?vim?x?|fzf)(diff)?$'" -bind-key -n -r 'C-h' if-shell "${is_vim}" 'send-keys C-h' 'select-pane -L' -bind-key -n -r 'C-j' if-shell "${is_vim}" 'send-keys C-j' 'select-pane -D' -bind-key -n -r 'C-k' if-shell "${is_vim}" 'send-keys C-k' 'select-pane -U' -bind-key -n -r 'C-l' if-shell "${is_vim}" 'send-keys C-l' 'select-pane -R' +bind-key -n -T prefix k if-shell "${is_vim}" 'send-keys C-h' 'select-pane -L' +bind-key -n -T prefix j if-shell "${is_vim}" 'send-keys C-j' 'select-pane -D' +bind-key -n -T prefix h if-shell "${is_vim}" 'send-keys C-k' 'select-pane -U' +bind-key -n -T prefix l if-shell "${is_vim}" 'send-keys C-l' 'select-pane -R' 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 ]' \