Creating splits
Terminal splits
Split the current terminal pane:| Shortcut | Direction |
|---|---|
| ⌘ D | Split right (vertical divider) |
| ⌘ ⇧ D | Split down (horizontal divider) |
- Click the ”+” button and select split direction
- Right-click the terminal tab bar for split options
Browser splits
Create a browser in a split pane:| Shortcut | Direction |
|---|---|
| ⌥ ⌘ D | Split browser right |
| ⌥ ⌘ ⇧ D | Split browser down |
Browser splits inherit the Ghostty terminal background color and opacity for a unified appearance.
Navigating between panes
Move focus between split panes using directional shortcuts:| Shortcut | Direction |
|---|---|
| ⌥ ⌘ ← | Focus pane left |
| ⌥ ⌘ → | Focus pane right |
| ⌥ ⌘ ↑ | Focus pane up |
| ⌥ ⌘ ↓ | Focus pane down |
Pane focus is directional and wraps around edges. If you’re in the rightmost pane and press ⌥ ⌘ →, focus moves to the leftmost pane.
Pane zoom
Temporarily maximize a pane to full screen:- Press ⌘ ⇧ ↩ to toggle zoom
- The zoomed pane fills the entire workspace
- Press the shortcut again to restore the split layout
Flash focused panel
If you lose track of which pane has focus in a complex split layout:- Press ⌘ ⇧ H to flash the focused panel
- The active pane briefly highlights so you can see where focus is
Divider manipulation
Adjust split pane sizes by dragging the divider between panes:- Hover over the divider between two panes
- Click and drag to resize
- Release to set the new size
Closing panes
Close a split pane:- Press ⌘ W to close the active surface
- Click the close button (×) on the tab
- Use the CLI:
cmux close-surface
- The adjacent pane expands to fill the space
- If only one pane remains, it fills the entire workspace
- The last pane in a workspace cannot be closed (cmux creates a new terminal automatically)
Split layouts
cmux supports arbitrarily nested splits:- Starting with a single pane
- Splitting horizontally or vertically
- Splitting the new panes again as needed
Tabs within panes
Each split pane can contain multiple surfaces as tabs:- Press ⌘ T to create a new tab in the active pane
- Drag tabs between panes to reorganize
- Click tabs to switch between surfaces in the same pane
Font size and zoom
Terminal font size is inherited when you create splits:- Zoom in/out with ⌘ + / ⌘ -
- Reset with ⌘ 0
- New splits inherit the current terminal’s font size
CLI for split management
Create splits programmatically via the socket API:Drag and drop
Reorganize panes by dragging tabs:- Drag a tab to another pane to move it
- Drag a tab to the edge of a pane to create a new split
- Drag a tab out of the window to detach it to a new window (if enabled)
Tab drag-and-drop uses custom UTTypes declared in
Info.plist for internal transfers. External drops are not supported.