Focus on the current split when zoomed

This commit is contained in:
Asocia 2021-07-15 16:25:17 +03:00
parent 6cd63335d4
commit dbbe45f3a7

View File

@ -79,8 +79,20 @@ set -g default-terminal "screen-256color"
bind C-l send-keys 'C-l' bind C-l send-keys 'C-l'
# use <prefix> j for zooming the current pane # use <prefix> j for zooming the current pane
bind-key j resize-pane -Z bind-key j if-shell "$is_vim" {
bind-key C-j resize-pane -Z 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 unbind z