From 0b097eb945bd2be1dff1ed8f886d3fc8f2d86579 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 19 Feb 2026 16:18:44 +0800 Subject: [PATCH] fix(tmux): preserve working directory on pane splits --- tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmux.conf b/tmux.conf index 2d5205c..64a50dc 100644 --- a/tmux.conf +++ b/tmux.conf @@ -27,10 +27,10 @@ bind-key -n C-Up select-pane -U bind-key -n C-Down select-pane -D # Create 4 split panes (2x2 grid) -bind-key g split-window -h \; split-window -v \; select-pane -t 0 \; split-window -v +bind-key g split-window -h -c "#{pane_current_path}" \; split-window -v -c "#{pane_current_path}" \; select-pane -t 0 \; split-window -v -c "#{pane_current_path}" # Create 3 split panes (main top-left 70%, sidebar top-right 30%, bottom 25%) -bind-key G split-window -v \; select-pane -U \; split-window -h \; resize-pane -t 2 -x 30% \; resize-pane -t 3 -y 25% \; select-pane -t 1 +bind-key G split-window -v -c "#{pane_current_path}" \; select-pane -U \; split-window -h -c "#{pane_current_path}" \; resize-pane -t 2 -x 30% \; resize-pane -t 3 -y 25% \; select-pane -t 1 # Copy mode vim-style bindings bind-key -T copy-mode-vi v send-keys -X begin-selection