commit ac34c293953e9cf5b5cac0b9a4738da34dc3d398 parent 4be33a5955b8d7d26246d4c6e5fbac79ff5ff6fb Author: Chris Bracken <chris@bracken.jp> Date: Mon, 13 May 2024 23:28:48 -0700 tmux: select first pane after opening layout When creating the C-B ^ and C-B \ layouts, select the first pane once all panes are created. Diffstat:
M | .config/tmux/tmux.conf | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf @@ -11,7 +11,7 @@ set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{25 # Enable focus events if supported by the terminal. set-option -g focus-events on -# keybindings +# keybindings. set-window-option -g mode-keys vi set-option -g status-keys vi bind-key h select-pane -L @@ -23,11 +23,11 @@ bind-key -T copy-mode-vi 'v' send-keys -X begin-selection bind-key -T copy-mode-vi 'y' send-keys -X copy-selection bind-key -T copy-mode-vi 'r' send-keys -X rectangle-toggle -# frequently used layouts -bind-key -T prefix ^ split-window -h\; split-window -v -bind-key -T prefix \\ split-window -h\; split-window -h\; select-layout even-horizontal +# frequently used layouts. +bind-key -T prefix ^ split-window -h\; split-window -v\; select-pane -U\; select-pane -L +bind-key -T prefix \\ split-window -h\; split-window -h\; select-layout even-horizontal\; select-pane -L -# disable mouse +# disable mouse. set-option -g mouse off # Disable automatic window renaming.