User guide / Terminals

Composable terminal actions

Development reference · View source

Terminal review uses terminal-search and terminal-search-regex for its search prompts, and terminal-search-next / terminal-search-previous for match navigation (n, N, ) and (). These use the captured output’s search state and preserve the current mode; document search state stays separate.

terminal-paste sends the selected register to the child. Default p and P then explicitly enter Insert after successful delivery. A standalone terminal-paste binding preserves mode. terminal-clipboard-paste-text sends clipboard text without entering Insert; Space c p and Space c P use it. Counts belong to the send action. Empty sources, oversized pastes and queue refusals stop the program before its mode tail. Live Insert input ownership and clipboard image delivery are unchanged.

yank and yank-line retain their shared meanings. Terminal y copies the review selection and enters Normal without collapsing it. Terminal Y, which was previously refused, now copies all review rows touched by the selection, including line breaks, then collapses the selection and enters Normal. A standalone yank-line preserves the selection and mode.

terminal-enter-input returns to live output and enters Insert, where ordinary keys go to the child. Terminal i, a, I, A, o and O all use this action; they do not move a document caret or insert a line. Without an Insert role it refuses before discarding review. Normal and Select entry remain shared mode actions, with the terminal’s live-output and captured-review behavior.

terminal-undo-paste asks the child to erase the last text Runyte sent, only while that paste is still its last input and has not submitted a line. Terminal u uses this action; document undo no longer has a terminal meaning. It preserves the mode, including temporary linewise Select. A count repeats the request, but only the first request can erase the last paste. Document insert, append, open-line and Replace actions are unavailable in terminal bindings.