From 94547defc55711a73d7b0beddc9e966fad5bccbc Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sat, 26 Jul 2025 23:36:26 +0200 Subject: [PATCH] Add git windows to research template for better workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add code-git window (window 3) with gitui in CODE_PATH - Add paper-git window (window 6) with gitui in PAPER_PATH - Adjust window numbering: paper windows moved from 3,4 to 4,5 - Brings research template in line with basic and content templates - Provides dedicated git management for both code and paper repositories New window layout: 1. code (nvim) 2. code-ai (claude + splits) 3. code-git (gitui) ← NEW 4. paper (nvim) 5. paper-ai (claude + splits) 6. paper-git (gitui) ← NEW 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- scripts/templates/research.sh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/scripts/templates/research.sh b/scripts/templates/research.sh index 198235e..609d7d6 100755 --- a/scripts/templates/research.sh +++ b/scripts/templates/research.sh @@ -26,16 +26,20 @@ tmux send-keys -t $SESSION_NAME:2 "claude -r" C-m tmux split-window -t $SESSION_NAME:2 -h -c "$CODE_PATH" tmux split-window -t $SESSION_NAME:2.2 -v -c "$CODE_PATH" tmux select-pane -t $SESSION_NAME:2.1 +tmux new-window -t $SESSION_NAME:3 -n "code-git" -c "$CODE_PATH" +tmux send-keys -t $SESSION_NAME:3 "gitui" C-m # Create windows for paper -tmux new-window -t $SESSION_NAME:3 -n "paper" -c "$PAPER_PATH" -tmux select-window -t $SESSION_NAME:3 -tmux send-keys -t $SESSION_NAME:3 "nvim" C-m -tmux new-window -t $SESSION_NAME:4 -n "paper-ai" -c "$PAPER_PATH" -tmux send-keys -t $SESSION_NAME:4 "claude -r" C-m -tmux split-window -t $SESSION_NAME:4 -h -c "$PAPER_PATH" -tmux split-window -t $SESSION_NAME:4.2 -v -c "$PAPER_PATH" -tmux select-pane -t $SESSION_NAME:4.1 +tmux new-window -t $SESSION_NAME:4 -n "paper" -c "$PAPER_PATH" +tmux select-window -t $SESSION_NAME:4 +tmux send-keys -t $SESSION_NAME:4 "nvim" C-m +tmux new-window -t $SESSION_NAME:5 -n "paper-ai" -c "$PAPER_PATH" +tmux send-keys -t $SESSION_NAME:5 "claude -r" C-m +tmux split-window -t $SESSION_NAME:5 -h -c "$PAPER_PATH" +tmux split-window -t $SESSION_NAME:5.2 -v -c "$PAPER_PATH" +tmux select-pane -t $SESSION_NAME:5.1 +tmux new-window -t $SESSION_NAME:6 -n "paper-git" -c "$PAPER_PATH" +tmux send-keys -t $SESSION_NAME:6 "gitui" C-m tmux select-window -t $SESSION_NAME:1