Splits, Keyboard Navigation & Multi-Worktree Flow
Organize Ghostty-styled terminal splits, editor tabs, and per-worktree browser tabs—and navigate 10+ concurrent worktrees at keyboard speed with Cmd/Ctrl-P, Cmd/Ctrl-J, the + Omnibox, and Session Restore.
🎯 Goal
- Master Orca's per-worktree workspace layout: Ghostty-styled terminal splits, editor tabs, and per-worktree Chromium browser tabs.
- Move effortlessly across files, tabs, and workspaces using Quick Open (
Cmd/Ctrl-P), Jump Palette (Cmd/Ctrl-J), the New-tab Omnibox (+), and Session Restore. - Adopt clean operational habits to juggle 10+ concurrent worktrees without losing context or spawning duplicate tabs.
📋 Prerequisites
- Two or more active worktrees open in Orca so you can practice jumping across branches.
- Shortcut modifier convention:
Cmdon macOS,Ctrlon Windows / Linux.
🛠️ Step-by-Step
The Workspace Layout Model: Splits, Tabs & Worktree Scoping
Once you run three or more branches concurrently, mixing every terminal and browser tab into a single global bar creates instant confusion. Orca scopes every UI pane to the active worktree:
- Terminal Splits (Ghostty-Styled): Split panes horizontally or vertically with crisp Ghostty-inspired rendering and imported Ghostty settings. A proven setup puts your CLI agent on the left and your dev server + test watcher stacked on the right.
- Editor Tabs: File buffers and diffs belong strictly to the active worktree directory—eliminating accidental edits to the wrong branch's copy of a file.
- Per-Worktree Browser Tabs: Each worktree maintains its own embedded Chromium tabs. Switching from
feat/oauth(localhost:3101) toui/pricing(localhost:3102) switches browser context cleanly without overwriting previews.
Three Keyboard Launchers That Eliminate Sidebar Hunting
| Launcher & Shortcut | Scope | How It Works | Best For |
|---|---|---|---|
Quick Open (Cmd+P / Ctrl+P) | Current worktree only | Uses path-segment matching (typing auth/cb matches src/app/api/auth/callback/route.ts). Surfaces tracked source files first and gitignored files (like .env.local) in a second pass so node_modules never buries real code. | Opening files or inspecting .env.local inside the active branch |
Jump Palette (Cmd+J / Ctrl+J) | Global across all worktrees | Searches across every worktree, recent workspaces, and open tabs in one list. | Switching context across 5–15 concurrent worktrees in seconds |
New-tab Omnibox (+) | Tabs, files, URLs & agents | Unified single-field search across open tabs, files, URLs, and agents. Focuses an already-open tab instead of duplicating it. | Opening anything new—or jumping back without tab clutter |
Session Restore Picks Up Where You Left Off
Orca's Session Restore saves your active worktrees, split pane geometries, open tabs, and terminal/agent session context across restarts so you never have to rebuild your layout every morning.
Habits for Juggling 10+ Concurrent Worktrees Without Chaos
- Pin long-lived anchors; name short-lived branches clearly
Pin 1–2 primary or multi-day worktrees to the top of the sidebar, and give active worktrees short semantic names (fix/e2e-flaky,feat/stripe-webhook) so 3 keystrokes inCmd/Ctrl-Jjump straight there. - Standardize a 3-Pane Split Muscle Memory
Keep Left = Agent CLI/Chat, Top-Right = Dev Server/Tests, Bottom-Right (or adjacent tab) = Diff Viewer or Embedded Chromium. Your eyes always know where status lives. - Default to the
+Omnibox Instead of Spawning Blind Tabs
Not sure whetherDifforhttp://localhost:3102is already open? Hit+and type a few letters—if it is already open, Orca jumps straight to that tab without creating a duplicate. - Archive Merged Worktrees Daily
As soon as a PR merges, stop any dev server processes and remove the worktree (triggeringscripts.archiveto drop temporary DBs/containers) soCmd/Ctrl-Jstays fast and uncluttered.
⚠️ Common Pitfalls
- Pressing
Cmd/Ctrl-Pexpecting to find a tab in another worktree
Remember the boundary:P= Project files in the current worktree,J= Jump across all worktrees, recents, and tabs. - Assuming
.env.localor generated.source/files are missing from Quick Open
Quick Open intentionally ranks tracked repository files first and surfaces gitignored files in a second pass so build artifacts never crowd out your source code. Keep typing or scroll slightly lower to select gitignored files. - Leaving 20 finished worktrees lingering in the sidebar
Stale worktrees bloat Jump Palette search results and often leave background dev servers holding RAM and TCP ports. Clean up merged worktrees at the end of every sprint or day.
✅ Checklist & Next Steps
- Used
Cmd/Ctrl-Pwith path-segment matching inside an active worktree and spotted second-pass gitignored results. - Jumped cleanly across two different worktrees via
Cmd/Ctrl-J. - Tested the
+New-tab Omnibox to focus an existing open tab without creating a duplicate. - Configured a repeatable split pane layout (Agent + Dev Server / Tests).
Next: Diff Viewer, Annotate AI Diff & Review Loops
Inspect combined diffs against start-from ref, resolve 3-way merge conflicts, and batch line-anchored comments back to your agent.
Quick Reference: Interactive Shortcuts & CLI Finder
Filter macOS vs Windows/Linux shortcuts and copy ready-to-run Orca CLI commands.
Worktree Isolation & The 4 Real Pitfalls
Understand base ref vs start-from ref, Pinned worktrees, Force Delete & Preserved branches, plus concrete scripts.setup fixes for dependencies, .env files, port collisions, and shared DBs.
Diff Viewer, Annotate AI Diff & PR Shipping
Master Orca's combined diff viewer, line-anchored Annotate AI Diff batch loop, AI vs human attribution, safe commits/pushes, and GitHub/Linear/Jira workflows.