Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Keyboard shortcuts

Every shortcut is an action with a kebab-case name and a default chord. Rebind any of them in the keys section of settings.json; an override replaces that action’s default, and unlisted actions keep theirs.

The window shows the chord where it offers the action: at the end of each tab menu line, in the tooltips of the sidebar’s Hide and settings buttons, and in the search box’s placeholder. It reads your keymap, so a rebinding shows there at once, and an action with no chord shows none. macOS spells a chord with symbols (⇧⌘R), other platforms with words (Ctrl+Shift+R).

Below, mod is the platform primary modifier: Cmd on macOS, Ctrl everywhere else. It is a shorthand for reading this table — not valid chord syntax. Write concrete modifiers in your own bindings.

On Windows and Linux, defaults leave the terminal’s control keys alone. A bare Ctrl chord a shell’s line editor reads is one — Ctrl+D is end-of-file, Ctrl+W deletes a word, and xterm sends Ctrl+2 … 8 as control bytes — and a chord TermHerd binds never reaches the program in the pane. So where mod would land on one, the action takes Ctrl+Shift instead, as GNOME Terminal, Konsole and kitty do; the rows below name that chord off macOS. A program reading the legacy keyboard encoding sees Ctrl+Shift+letter as the same byte as the unshifted chord, so nothing is taken from it. The splits follow Windows Terminal: Alt+Shift++ side by side, Alt+Shift+- stacked. The tab jumps take Alt+1 … 9, as in GNOME Terminal and Konsole.

Two exceptions are kept on purpose: plain Ctrl+V pastes on Windows, and zoom-out stays on Ctrl+- — both below.

The full action vocabulary

Tabs

ActionDefaultDoes
next-tabctrl+tabnext tab (Ctrl on every platform)
prev-tabctrl+shift+tabprevious tab
activate-tab-1 … -9cmd+1 … cmd+9; alt+1 … alt+9 off macOSjump to tab N
new-shell-heremod+t; ctrl+shift+t off macOSnew shell in the focused session’s directory
new-claude-session-heremod+alt+tnew Claude session in that directory
new-claude-session-in-worktree(unbound)new Claude session in a new git worktree of that repo (worktrees)
reopen-closed-tabmod+shift+t; ctrl+alt+shift+t off macOSreopen the tab you just closed
close-focusedmod+w; ctrl+shift+w off macOSclose the focused pane; a lone pane closes its tab
rename-tabmod+shift+irename the focused tab, as a double-click does
open-tab-menumod+shift+mopen the focused tab’s menu, as a right-click does
pick-tab-color(unbound)pick the focused tab’s colour
toggle-park-tab(unbound)park the focused tab, or unpark it (parking)
open-new-session(unbound)reserved — no surface yet

rename-tab opens the same inline field a double-click on the tab opens, filled with the tab’s current name: Enter keeps the edit — on a Claude tab by asking Claude to /rename it, as a double-click does — and Escape drops it. Its chord is Terminal.app’s Edit Title on macOS; on Windows and Linux Ctrl+Shift+I reaches a program in the terminal as the same byte as Ctrl+I, which is Tab, so claiming it takes nothing away from that program.

pick-tab-color opens a list of the eight colours Claude’s /color takes, and None, over the focused tab — the list the tab menu’s Tab colour… opens. ↑ and ↓ move, Enter picks, Escape leaves. On a Claude tab the pick is typed as /color behind the usual prompt, and the action does nothing unless that Claude has an empty prompt and no dialog open (it may be at work); on a shell tab, or one whose Claude has exited, TermHerd keeps the colour itself (see tabs). Bind it yourself; it has no default.

open-tab-menu opens the tab menu a right-click opens; every entry in it is one of the actions on this page. With no tab open it does nothing. The chord follows the letter M wherever the layout puts it. On Windows and Linux Ctrl+Shift+M reaches a terminal program as Ctrl+M, which is Enter, so the unshifted chord still gets there.

Bind letters and named keys, not punctuation that needs Shift. A chord is matched on the key pressed before Shift applies, so on French AZERTY, where . is Shift+;, a press of Cmd+Shift+; is the chord cmd+shift+;, never cmd+shift+.. When a chord does nothing, run with RUST_LOG=termherd=debug: every chord with a modifier other than Shift that reaches no action is logged with the key and modifiers it arrived as.

activate-tab-N is matched by physical key position, so it lands on the same keys on AZERTY and QWERTZ, where the number row produces &, é, … without Shift. Off macOS it takes Alt, which costs the shell its Alt+digit numeric argument from the number row; bind "activate-tab-1": "ctrl+1" and so on to get the old chords back.

Splits and focus

ActionDefaultDoes
split-verticalmod+d; alt+shift+= off macOSsplit side by side
split-horizontalmod+shift+d; alt+shift+-, alt+shift+d off macOSsplit stacked
focus-leftmod+shift+leftfocus the pane to the left
focus-rightmod+shift+right… to the right
focus-upmod+shift+up… above
focus-downmod+shift+down… below
focus-next(unbound)cycle forward through panes
focus-prev(unbound)cycle backward
next-attentionmod+shift+ago to the next session waiting for you

Terminal

ActionDefault (macOS)Default (Windows / Linux)
copycmd+cctrl+shift+c
pastecmd+vctrl+shift+v; also ctrl+v on Windows
copy-agent-name(unbound)(unbound)
send-to-desktop(unbound)(unbound)
reveal-session-dir(unbound)(unbound)
reveal-transcript(unbound)(unbound)
scroll-topcmd+upctrl+shift+home
scroll-bottomcmd+downctrl+shift+end
zoom-incmd+=, cmd+shift+=, cmd+plusctrl+… (same three)
zoom-outcmd+-ctrl+-
zoom-resetcmd+0ctrl+0

On Windows and Linux Ctrl+C must stay the interrupt, so copy takes Shift; Ctrl+C sends SIGINT everywhere. Paste takes Ctrl+Shift+V, and on Windows plain Ctrl+V as well, as in Windows Terminal: Claude Code on Windows pastes an image on Alt+V, which still reaches it. On Linux Ctrl+V is left to the program, because Claude Code pastes an image on it there. To paste text on it anyway, bind "paste": ["ctrl+v", "ctrl+shift+v"].

split-horizontal also takes Alt+Shift+D off macOS. On AZERTY, - shares the 6 key, and a number-row key is matched by its position, so Alt+Shift+- works there from the keypad minus only.

Off macOS, scroll-top and scroll-bottom take Windows Terminal’s Ctrl+Shift+Home / End, leaving Ctrl+↑ / ↓ to the program in the pane.

copy-agent-name copies the peer name of the Claude in the focused pane: the name /list-agents shows and another Claude session addresses it by, such as termherd-b0. It reads Claude’s session file at the moment you press it, and does nothing when no Claude runs there or it has not written one yet. On Windows it finds a Claude that runs as claude.exe, and not one an npm install runs under node.exe. Bind it yourself; it has no default.

send-to-desktop asks to type /desktop into the Claude in the focused pane, which hands the session to the Claude desktop app. A prompt shows the exact line first: Enter types it, Escape drops it. It does nothing unless that Claude is idle with nothing typed in its prompt. On Linux, where Claude Desktop does not run, it does nothing. Bind it yourself; it has no default.

reveal-session-dir opens the focused pane’s working directory in the file manager: Finder, Explorer, or the one xdg-open picks on Linux. reveal-transcript shows the focused Claude’s transcript, its .jsonl file, selected there; on Linux, where no file manager takes a selection the same way, the folder holding it opens. It does nothing on a shell pane, and on a fresh Claude until the sidebar’s scan has found its file. Neither has a default.

Off macOS zoom keeps bare Ctrl, as GNOME Terminal, Konsole and Windows Terminal do. Ctrl+- shares its key with _ (undo in a shell’s line editor) on US layouts, but TermHerd sends that chord to a program as a plain -, so binding it takes no control byte away. Moving it to Ctrl+Shift+- would leave AZERTY, where - is on the 6 key, without a zoom-out chord.

Zoom-in binds three chords. On QWERTY and AZERTY + is Shift+=, and a chord is matched on the key before Shift applies (see above), so Cmd++ arrives as mod+shift+= and Cmd+= as mod+=. mod+plus is the keypad +, or the + key of a layout that types it without Shift, such as German QWERTZ. On Windows and Linux AZERTY, where - shares the 6 key, zoom-out answers the keypad minus only, as split-horizontal does above.

App

ActionDefaultDoes
focus-searchmod+f; ctrl+shift+f off macOSfocus the sidebar search box
toggle-sidebarmod+b; ctrl+shift+b off macOSshow / hide the sidebar
open-settingsmod+,open / close the settings panel
capturemod+shift+swrite a state dump + screenshot
toggle-recordmod+shift+rstart / stop a GIF screencast

Not in the keymap

GestureDoes
Ctrl+Cinterrupt (SIGINT) — passed through to the program
Escapecancel an open prompt, rename, tab menu or doc pane
Enterconfirm an open prompt; run the selected tab-menu entry
↑ / ↓ in the tab menumove the selection
Right-click a tabfocus it and open its menu
Drag a selectionselect; copies too with terminal.copy_on_select (off by default)
Double-clickselect the word, or the whole URL or path, under the pointer; copies too with terminal.copy_on_select
Triple-clickselect the whole line, wrapped rows included; copies too with terminal.copy_on_select
Right-clickpaste, with terminal.paste_on_right_click (off by default)
Wheelscroll back through history, or the wheel event to a program reading the mouse
Click, drag, right-click in a program reading the mousethe event goes to the program — vim, lazygit, Claude Code’s /resume; nothing is selected or pasted locally
Shift+drag in such a programthe terminal’s own selection, as a plain drag is at a shell
Cmd/Ctrl+clickopen a URL, hidden (OSC 8) hyperlink or file path under the pointer
Drag a tabreorder it
Ctrl+Cmd+Space (macOS)open the Character Viewer (Edit → Emoji & Symbols); a picked emoji goes to the focused rename field or terminal
Cmd+M (macOS)minimize the window (Window → Minimize); as a menu shortcut it wins over a mod+m binding

Escape and Enter are bound to no action on purpose: they belong to whichever overlay is open. That is also what makes them the only way an MCP caller can answer a prompt it armed.

Chord syntax

Case- and order-insensitive. Modifiers ctrl, shift, alt, cmd, joined to a key with +. Aliases: control for ctrl, option for alt, and super, logo, win or meta for cmd. The + key itself is spelled plus, since a literal + is the separator. It names a key that types + without Shift, such as the keypad +: on QWERTY and AZERTY, Ctrl+Shift++ is ctrl+shift+=, never ctrl+shift+plus.

"keys": {
  "copy": "ctrl+y",
  "paste": ["ctrl+shift+v", "shift+insert"],
  "activate-tab-1": "ctrl+1"
}

A key is a single character (a, 1, ;) or one of these names: tab, enter, escape, space, backspace, delete, insert, up, down, left, right, home, end, pageup, pagedown, and f1 to f12. A chord naming any other key never matches a press.

A binding wins over the terminal. Bind space, backspace or a letter with no modifier, or with Shift alone, and that key stops reaching the program in the pane.

One chord or a list of chords per action. Unknown action names and unparsable chords are logged and skipped — they do not invalidate the rest of the file.

Reading the live keymap

The stdio MCP server publishes the action catalogue — each action with its default chords and the override settings.json sets for it, if any — as a resource at termherd://keys/schema. It is generated from the same in-code table this page describes, so it cannot drift from the binary you are running, and its defaults are the running platform’s. One gap: the activate-tab-N family is not listed.