|
| 1 | +--- |
| 2 | +title: Terminal |
| 3 | +description: The built-in Ghostty-backed terminal for each worktree |
| 4 | +--- |
| 5 | + |
| 6 | +Supacode embeds a terminal directly in the detail pane so you can stay in the worktree while you code, test, and run agents. |
| 7 | + |
| 8 | +## Built on Ghostty |
| 9 | + |
| 10 | +Supacode uses GhosttyKit for terminal rendering and behavior. That means terminal theming and many terminal-level shortcuts follow your Ghostty configuration instead of a parallel terminal implementation. |
| 11 | + |
| 12 | +## One terminal state per worktree |
| 13 | + |
| 14 | +Every worktree gets its own terminal state. When you switch worktrees, Supacode restores that worktree's tabs, splits, notifications, and focused surface state inside the app. |
| 15 | + |
| 16 | +## First tab behavior |
| 17 | + |
| 18 | +When a worktree is opened for the first time, Supacode can ensure an initial tab exists. If the worktree was just created and a setup script is configured, that first tab can launch the setup script automatically. |
| 19 | + |
| 20 | +## Core actions |
| 21 | + |
| 22 | +From the terminal area you can: |
| 23 | + |
| 24 | +- open a new terminal tab |
| 25 | +- close the focused surface |
| 26 | +- close the focused tab |
| 27 | +- search terminal output |
| 28 | +- split the current terminal into panes |
| 29 | + |
| 30 | +## Tabs and splits |
| 31 | + |
| 32 | +Supacode's terminal is not limited to a single shell. Each worktree can have multiple tabs, and each tab can contain split panes. |
| 33 | + |
| 34 | +Use terminal tabs when the commands are logically separate: |
| 35 | + |
| 36 | +- one tab for your agent |
| 37 | +- one tab for a dev server |
| 38 | +- one tab for tests |
| 39 | +- one tab for a git client such as `lazygit` |
| 40 | + |
| 41 | +The tab context menu supports: |
| 42 | + |
| 43 | +- Close Tab |
| 44 | +- Close Other Tabs |
| 45 | +- Close Tabs to the Right |
| 46 | +- Close All |
| 47 | + |
| 48 | +Use splits when the commands belong together in the same tab. |
| 49 | + |
| 50 | +Supacode supports split creation in multiple directions, and the split tree can be resized, equalized, or zoomed through Ghostty split actions. The split tree view also supports drag-and-drop reorganization. |
| 51 | + |
| 52 | +## Search and navigation |
| 53 | + |
| 54 | +When a worktree terminal is focused, Supacode provides fixed search shortcuts: |
| 55 | + |
| 56 | +| Action | Shortcut | |
| 57 | +| --- | --- | |
| 58 | +| Find | `⌘F` | |
| 59 | +| Find Next | `⌘G` | |
| 60 | +| Find Previous | `⇧⌘G` | |
| 61 | +| Hide Find Bar | `⇧⌘F` | |
| 62 | +| Use Selection for Find | `⌘E` | |
| 63 | + |
| 64 | +## Notifications |
| 65 | + |
| 66 | +Supacode can surface notifications generated from terminal activity and keep them attached to the worktree where they happened. |
| 67 | + |
| 68 | +Unread notifications show up: |
| 69 | + |
| 70 | +- on the worktree row in the sidebar |
| 71 | +- in the toolbar's aggregated notifications popover |
| 72 | + |
| 73 | +Notifications are tied to a specific terminal surface, so selecting one can jump you back to the exact place that produced it. |
| 74 | + |
| 75 | +## Theming |
| 76 | + |
| 77 | +Appearance mode is controlled by Supacode, but terminal theming follows Ghostty. If you want the terminal palette to change with light and dark mode, configure that in your Ghostty config. |
| 78 | + |
| 79 | +## Related docs |
| 80 | + |
| 81 | +- [Command Palette](/command-palette) |
| 82 | +- [Repository Commands](/worktree/repo-configuration) |
| 83 | +- [Keyboard Shortcuts](/keyboard-shortcuts) |
0 commit comments