From dbbe45f3a71881151898647e071b82efe70787a6 Mon Sep 17 00:00:00 2001 From: Asocia Date: Thu, 15 Jul 2021 16:25:17 +0300 Subject: [PATCH] Focus on the current split when zoomed --- .tmux.conf | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 556c014..b3259ca 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -79,8 +79,20 @@ set -g default-terminal "screen-256color" bind C-l send-keys 'C-l' # use j for zooming the current pane -bind-key j resize-pane -Z -bind-key C-j resize-pane -Z +bind-key j if-shell "$is_vim" { + resize-pane -Z + send-keys C-w = +} { + resize-pane -Z + } + + +bind-key C-j if-shell "$is_vim" { + resize-pane -Z + send-keys C-w = +} { + resize-pane -Z + } unbind z