User guide / Terminals

Terminal keys

Development reference · View source

KeyAction
Space t n or Ctrl-w tRun $SHELL in this pane (:terminal, :term, :t; :terminal <command> runs something else)
Space t tList the running and retained exited terminals and visit the chosen one (:terminals)
Space t rRename this pane’s terminal (:terminal-rename <name>)
Space t qShow this pane’s buffer again, leaving the program running
Space t yCopy this terminal’s output into a read-only buffer (:terminal-output)
Space t sSend the selection — or the whole buffer — to a terminal as one bracketed paste (:terminal-send [number|name])
Tab, then Close in Space t tExplicitly end and forget the selected terminal
Tab, then Force kill in Space t tKill the selected terminal’s process group and discard its output after confirmation; Enter confirms, Escape cancels
Ctrl-w h/j/k/l or Ctrl-w Ctrl-h/j/k/l in Terminal InsertMove directly without capturing or discarding review; a live terminal destination starts Insert, a reviewed terminal stays in review, and a document destination starts Normal
Ctrl-h/j/k/l in Terminal InsertThe exact same destination behavior without the prefix, when editor.fast_pane_keys is on; the child stops receiving those four keys
Ctrl-w w in Terminal InsertCycle panes with the same live-terminal/reviewed-terminal/document destination behavior
Ctrl-w v/s in Terminal InsertCreate a vertical/horizontal split showing the working-directory explorer, while leaving the terminal child live without review
Ctrl-\ in a terminalFirst leave INSERT for live NORMAL, then enter review on the second press. Reported as Ctrl-4 by terminals without the enhanced keyboard protocol, and both work
i / a in a terminalType again, returning to the live screen first
h / j / k / l, word, line, paragraph, and character-find motionsMove the terminal review caret; after v, extend an inclusive character selection in either direction
% in terminal reviewSelect all retained review text
x / X in terminal reviewSelect the current line, then grow the lower / upper edge on repeated presses without ever shrinking
C / Alt-C in terminal reviewAdd carets below / above at the same occupied terminal-cell column, skipping short rows
Ctrl-u / Ctrl-d, Ctrl-b / Ctrl-fMove the review caret by half / full pages, keeping it visible
gg / ge in a terminalMove to the oldest / newest rows in the captured review snapshot
gf in terminal reviewOpen the selected file path or web link, or the target under the caret; inferred paths at the end of a sentence ignore trailing punctuation if the literal name does not exist. Web links use the default browser, including links broken across rows by the terminal or by an agent’s indented output
gw in terminal reviewLabel visible terminal words and jump to the chosen one
f / F / t / T in terminal reviewFind characters in the snapshot
s / /, then n / NSearch an immutable terminal review snapshot by literal / regular expression and move among matches
) / ( in terminal reviewMove through search matches, like n / N
y / Space c y in terminal reviewCopy the caret character or every selection, joined by newlines, to the unnamed register / system clipboard
p / P in a terminalLeave review and send Runyte’s selected register to the live program
Space c p / Space c P in a terminalLeave review and send the system clipboard to the live program
u in terminal reviewTake back the last paste, while it is still the child’s last input

Review search is case-insensitive for s and a regular expression for /, with stable highlighted matches.