Fork: Copy mode

Copy mode

Text selection from the chat session view.

Copy mode collapses code diffs into a single column for easy copying.

KeysAction
<leader>v, Ctrl+W kEnter copy mode
h, j, k, l, arrow keysNavigate
v, V, Ctrl+VStart character-wise, line-wise, or block selection
y, yyYank to the vim register
EnterCopy to the system clipboard, toggle expandable tool output, or open a selected subagent task
YYank to the vim register and scroll to the bottom
Shift+EnterCopy to the system clipboard and scroll to the bottom
EscapeExit visual mode
qExit copy mode and scroll to the bottom
Ctrl+W jExit copy mode without scrolling
Ctrl+W wToggle copy mode
iFocus the prompt input in insert mode without scrolling
z, zt, zz, zbAdjust copy-mode scroll positioning
H, M, LJump to the top, middle, or bottom of the viewport
/, ?Search forward or backward in chat history
n, NRepeat search in the same or opposite direction

When in search mode, Enter submits the search, and Escape clears search highlights before exiting copy mode.

Search uses smartcase, lowercase queries are case-insensitive, and queries containing uppercase letters are case-sensitive.

Tip

Configure the copy mode entry key with keybinds["session.copy_mode"].