Keyboard Shortcuts
Leader key: ctrl+x
| Shortcut | Action |
|---|---|
Tab / shift+Tab | Switch agents |
ctrl+p | Command palette |
ctrl+x m | Switch model |
ctrl+x a | Agent list |
ctrl+x n | New session |
ctrl+x u / ctrl+x r | Undo / Redo |
ctrl+x h | Help |
ctrl+x e | Open editor |
ctrl+x q | Exit |
ctrl+x c | Compact session |
escape | Interrupt execution |
shift+return | New line in input |
Session navigation
<leader> down— enter child sessionleft/right— cycle childrenup— return to parent
Pinned sessions & quick switch
Pin the sessions you keep coming back to and jump to them with a single chord. Open the session list with <leader> l, then:
| Shortcut | Action |
|---|---|
<leader> l | Open the session list |
ctrl+f | Pin or unpin the highlighted session |
<leader> 1…9 | Jump straight to pinned slot 1 through 9 |
Pinned top-level sessions are grouped under a Pinned category at the top of the session list, and the first nine are assigned quick-switch slots 1–9 — the slot number shows in the list gutter. Pressing <leader> 1…<leader> 9 navigates directly to the session in that slot from anywhere in the TUI, without opening the list first.
Pins persist across restarts and only apply to top-level sessions (not child sessions). When a pinned session is deleted it is removed from your pins automatically.
Diff viewer
The TUI ships a full-screen diff viewer that is enabled by default. Open it from the command palette or the /diff command:
/diff
It opens on your working tree changes by default. Use d to switch the source to the last assistant turn, and back.
Diff viewer shortcuts
| Shortcut | Action |
|---|---|
escape / q | Close the diff viewer |
tab | Switch focus between file tree and patches |
j / down | Move down |
k / up | Move up |
pagedown / ctrl+f | Page down |
pageup / ctrl+b | Page up |
n / p | Jump to next / previous file |
enter / space | Toggle the highlighted item |
right | Expand the highlighted folder |
left | Collapse the highlighted folder |
E | Expand all folders |
b | Toggle the file-tree sidebar |
s | Toggle single-patch view |
d | Switch source (working tree / last turn) |
v | Toggle split / unified layout |
m | Toggle reviewed state for the selected file |
? | Show the full diff shortcut list |
File tree
- Focus-first-file. Switching focus into the file tree (
tab) automatically highlights the first changed file, so you can start navigating immediately. - Directory collapse. Single-child directory chains are folded into one row (for example
src/cli/cmd) to keep the tree compact. Expand or collapse a folder withright/left, or open everything at once withE. - Reviewed tracking. Mark a file as reviewed with
mto keep track of what you have already looked at.
Accelerated scrolling
The patch pane uses accelerated scrolling. By default it scrolls a fixed three lines per step; you can tune this in your TUI config:
{
"scroll_speed": 5,
"scroll_acceleration": { "enabled": true }
}
scroll_acceleration.enabledturns on macOS-style momentum scrolling (the faster you scroll, the further each step travels). When enabled, it takes precedence overscroll_speed.scroll_speedsets a fixed number of lines per scroll step (minimum0.001). Omitting both leaves the default speed of3.
See Configuration for where these settings live.