dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit eaac4993a0e8a0e9a9445c4037e7e2ce081076fb
parent b4c809f545828a0668d94eb7d1a9f31a95035dfc
Author: Chris Bracken <chris@bracken.jp>
Date:   Sun, 29 Jun 2025 15:52:00 -0700

tmux: add mappings for resizing panes

Diffstat:
M.config/tmux/tmux.conf | 15++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf @@ -44,7 +44,20 @@ bind-key -T copy-mode-vi 'r' send-keys -X rectangle-toggle # Clear screen and reset scroll buffer. bind-key b send-keys -R C-l\; clear-history -# Frequently used layouts. +# Use arrow keys to resize panes. +bind-key -r Left resize-pane -L 5 +bind-key -r Right resize-pane -R 5 +bind-key -r Up resize-pane -U 5 +bind-key -r Down resize-pane -D 5 +bind-key -r S-Left resize-pane -L 1 +bind-key -r S-Right resize-pane -R 1 +bind-key -r S-Up resize-pane -U 1 +bind-key -r S-Down resize-pane -D 1 + +# Layout even-horizontal instead of cycling through all layouts. +bind-key -r Space select-layout even-horizontal + +# Register bindings for commonly-used layouts. bind-key ^ split-window -h -c "#{pane_current_path}"\; split-window -v -c "#{pane_current_path}"\; select-pane -U\; select-pane -L bind-key \\ split-window -h -c "#{pane_current_path}"\; split-window -h -c "#{pane_current_path}"\; select-layout even-horizontal\; select-pane -L