From e20b54b465d66c11324d419f74372339c6cb36b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20T=C3=B8n=20L=C3=B8vhaug?= Date: Wed, 3 Jun 2026 22:16:26 +0200 Subject: [PATCH] Better pane handling --- .gitignore | 1 + tmux.conf.local | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7a5cf52..a39b7ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /plugins /tmux.conf +/.tags diff --git a/tmux.conf.local b/tmux.conf.local index a491d20..42e86a2 100644 --- a/tmux.conf.local +++ b/tmux.conf.local @@ -392,6 +392,11 @@ bind ΓΈ resize-pane -Z bind -n M-f resize-pane -Z +bind -r k if-shell -F '#{||:#{window_zoomed_flag},#{!=:#{pane_at_top},1}}' 'select-pane -U' '' +bind -r j if-shell -F '#{||:#{window_zoomed_flag},#{!=:#{pane_at_bottom},1}}' 'select-pane -D' '' +bind -r h if-shell -F '#{||:#{window_zoomed_flag},#{!=:#{pane_at_left},1}}' 'select-pane -L' '' +bind -r l if-shell -F '#{||:#{window_zoomed_flag},#{!=:#{pane_at_right},1}}' 'select-pane -R' '' + set -g @plugin 'alexwforsythe/tmux-which-key' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' @@ -440,12 +445,12 @@ bind m run "cut -c3- '#{TMUX_CONF}' | sh -s _toggle_mouse" \; display 'mouse #{? # by default, launching tmux will update tpm and all plugins # - true (default) # - false -tmux_conf_update_plugins_on_launch=true +tmux_conf_update_plugins_on_launch=false # by default, reloading the configuration will update tpm and all plugins # - true (default) # - false -tmux_conf_update_plugins_on_reload=true +tmux_conf_update_plugins_on_reload=false # by default, reloading the configuration will uninstall tpm and plugins when no # plugins are enabled