From faa3a8ac1e2fcb10e20c4b26d0e34fd6ddcb96f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 26 Feb 2025 14:30:06 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(tmux):=20resize=20n?= =?UTF-8?q?umber=20panes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/tmux/conf/binds.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/tmux/conf/binds.conf b/.config/tmux/conf/binds.conf index 008eb9c0..5c287905 100644 --- a/.config/tmux/conf/binds.conf +++ b/.config/tmux/conf/binds.conf @@ -60,10 +60,10 @@ bind-key -n C-k if -F "#{@pane-is-vim}" 'send-keys C-k' 'select-pane -U' bind-key -n C-l if -F "#{@pane-is-vim}" 'send-keys C-l' 'select-pane -R' # Smart pane resizing with awareness of Neovim splits. -bind-key -n C-left if -F "#{@pane-is-vim}" 'send-keys C-left' 'resize-pane -L 3' -bind-key -n C-down if -F "#{@pane-is-vim}" 'send-keys C-down' 'resize-pane -D 3' -bind-key -n C-up if -F "#{@pane-is-vim}" 'send-keys C-up' 'resize-pane -U 3' -bind-key -n C-right if -F "#{@pane-is-vim}" 'send-keys C-right' 'resize-pane -R 3' +bind-key -n C-left if -F "#{@pane-is-vim}" 'send-keys C-left' 'resize-pane -L 5' +bind-key -n C-down if -F "#{@pane-is-vim}" 'send-keys C-down' 'resize-pane -D 5' +bind-key -n C-up if -F "#{@pane-is-vim}" 'send-keys C-up' 'resize-pane -U 5' +bind-key -n C-right if -F "#{@pane-is-vim}" 'send-keys C-right' 'resize-pane -R 5' tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")' if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \