Terminal keys
Development reference · View source
| Key | Action |
|---|---|
Space t n or Ctrl-w t | Run $SHELL in this pane (:terminal, :term, :t; :terminal <command> runs something else) |
Space t t | List the running and retained exited terminals and visit the chosen one (:terminals) |
Space t r | Rename this pane’s terminal (:terminal-rename <name>) |
Space t q | Show this pane’s buffer again, leaving the program running |
Space t y | Copy this terminal’s output into a read-only buffer (:terminal-output) |
Space t s | Send the selection — or the whole buffer — to a terminal as one bracketed paste (:terminal-send [number|name]) |
Tab, then Close in Space t t | Explicitly end and forget the selected terminal |
Tab, then Force kill in Space t t | Kill 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 Insert | Move 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 Insert | The 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 Insert | Cycle panes with the same live-terminal/reviewed-terminal/document destination behavior |
Ctrl-w v/s in Terminal Insert | Create a vertical/horizontal split showing the working-directory explorer, while leaving the terminal child live without review |
Ctrl-\ in a terminal | First 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 terminal | Type again, returning to the live screen first |
h / j / k / l, word, line, paragraph, and character-find motions | Move the terminal review caret; after v, extend an inclusive character selection in either direction |
% in terminal review | Select all retained review text |
x / X in terminal review | Select the current line, then grow the lower / upper edge on repeated presses without ever shrinking |
C / Alt-C in terminal review | Add carets below / above at the same occupied terminal-cell column, skipping short rows |
Ctrl-u / Ctrl-d, Ctrl-b / Ctrl-f | Move the review caret by half / full pages, keeping it visible |
gg / ge in a terminal | Move to the oldest / newest rows in the captured review snapshot |
gf in terminal review | Open 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 review | Label visible terminal words and jump to the chosen one |
f / F / t / T in terminal review | Find characters in the snapshot |
s / /, then n / N | Search an immutable terminal review snapshot by literal / regular expression and move among matches |
) / ( in terminal review | Move through search matches, like n / N |
y / Space c y in terminal review | Copy the caret character or every selection, joined by newlines, to the unnamed register / system clipboard |
p / P in a terminal | Leave review and send Runyte’s selected register to the live program |
Space c p / Space c P in a terminal | Leave review and send the system clipboard to the live program |
u in terminal review | Take 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.