From b1f3a797443e6dc5a3f05904e8b466156d6637fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Wed, 24 Sep 2025 23:54:58 +0200 Subject: [PATCH] tmux/nvim: remove switch pane/window integration --- tmux/.tmux.conf | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 22e7c6b..34044de 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -48,42 +48,6 @@ set -g status-left-length 50 set -g status-right "#[fg=#316781]#[bg=#316781]#[fg=#abb5ba] %H:%M #[bg=default]#[fg=#316781] " set-window-option -g window-status-current-format '#[fg=#316781]#[bg=#316781]#[fg=#abb5ba] #I:#W#F #[fg=#316781]#[bg=black]' -is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?\.?(view|n?vim?x?)(-wrapped)?(diff)?$'" - -bind-key -n 'M-h' if-shell "$is_vim" 'send-keys M-h' 'select-pane -L' -bind-key -n 'M-j' if-shell "$is_vim" 'send-keys M-j' 'select-pane -D' -bind-key -n 'M-k' if-shell "$is_vim" 'send-keys M-k' 'select-pane -U' -bind-key -n 'M-l' if-shell "$is_vim" 'send-keys M-l' 'select-pane -R' -bind-key -n 'M-n' if-shell "$is_vim" 'send-keys M-n' 'select-window -n' -bind-key -n 'M-p' if-shell "$is_vim" 'send-keys M-p' 'select-window -p' - -bind-key -T copy-mode-vi 'M-h' select-pane -L -bind-key -T copy-mode-vi 'M-j' select-pane -D -bind-key -T copy-mode-vi 'M-k' select-pane -U -bind-key -T copy-mode-vi 'M-l' select-pane -R -bind-key -T copy-mode-vi 'M-n' select-window -n -bind-key -T copy-mode-vi 'M-p' select-window -p - -bind -n 'M-H' if-shell "$is_vim" 'send-keys M-H' 'resize-pane -L 1' -bind -n 'M-J' if-shell "$is_vim" 'send-keys M-J' 'resize-pane -D 1' -bind -n 'M-K' if-shell "$is_vim" 'send-keys M-K' 'resize-pane -U 1' -bind -n 'M-L' if-shell "$is_vim" 'send-keys M-L' 'resize-pane -R 1' - -bind-key -T copy-mode-vi M-H resize-pane -L 1 -bind-key -T copy-mode-vi M-J resize-pane -D 1 -bind-key -T copy-mode-vi M-K resize-pane -U 1 -bind-key -T copy-mode-vi M-L resize-pane -R 1 - -bind -n 'C-M-h' if-shell "$is_vim" 'send-keys C-M-h' 'swap-pane -s "{left-of}"' -bind -n 'C-M-j' if-shell "$is_vim" 'send-keys C-M-j' 'swap-pane -s "{down-of}"' -bind -n 'C-M-k' if-shell "$is_vim" 'send-keys C-M-k' 'swap-pane -s "{up-of}"' -bind -n 'C-M-l' if-shell "$is_vim" 'send-keys C-M-l' 'swap-pane -s "{right-of}"' - -bind-key -T copy-mode-vi C-M-h swap-pane -s "{left-of}" -bind-key -T copy-mode-vi C-M-j swap-pane -s "{down-of}" -bind-key -T copy-mode-vi C-M-k swap-pane -s "{up-of}" -bind-key -T copy-mode-vi C-M-l swap-pane -s "{right-of}" - bind-key -n M-0 run-shell tmux-session-menu bind -T copy-mode-vi v send -X begin-selection