Copy mode
Text selection from the chat session view.
Copy mode collapses code diffs into a single column for easy copying.
| Keys | Action |
|---|---|
<leader>v, Ctrl+W k | Enter copy mode |
h, j, k, l, arrow keys | Navigate |
v, V, Ctrl+V | Start character-wise, line-wise, or block selection |
y, yy | Yank to the vim register |
Enter | Copy to the system clipboard, toggle expandable tool output, or open a selected subagent task |
Y | Yank to the vim register and scroll to the bottom |
Shift+Enter | Copy to the system clipboard and scroll to the bottom |
Escape | Exit visual mode |
q | Exit copy mode and scroll to the bottom |
Ctrl+W j | Exit copy mode without scrolling |
Ctrl+W w | Toggle copy mode |
i | Focus the prompt input in insert mode without scrolling |
z, zt, zz, zb | Adjust copy-mode scroll positioning |
H, M, L | Jump to the top, middle, or bottom of the viewport |
/, ? | Search forward or backward in chat history |
n, N | Repeat 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"].