Skip to content

Commit 65931bd

Browse files
committed
config: 🛠️ adjust tmux function panes
1 parent 01a6a67 commit 65931bd

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

zsh/functions.zsh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@ tml() {
2323

2424
# Already inside tmux — set up the layout
2525
editor_pane=$(tmux display-message -p '#{pane_id}')
26-
tmux split-window -v -p 15 -c "$current_dir"
27-
28-
tmux select-pane -t "$editor_pane"
2926
tmux split-window -h -p 35 -c "$current_dir"
30-
3127
ai_pane=$(tmux display-message -p '#{pane_id}')
3228
tmux send-keys -t "$ai_pane" "$ai" C-m
29+
tmux select-pane -t "$editor_pane"
30+
tmux split-window -v -p 15 -c "$current_dir"
3331
tmux send-keys -t "$editor_pane" "$EDITOR ." C-m
34-
3532
tmux select-pane -t "$editor_pane"
3633
}
3734

0 commit comments

Comments
 (0)