Guides
Copy-mode & Search
Vi-style keyboard selection over a pane's scrollback, search, and yank.
Copy-mode freezes the focused pane and gives you a vi-style cursor over its screen and scrollback, so you can search, select and copy without touching the mouse.
- leader+y enters copy-mode (
copy-mode). - leader+/ enters copy-mode with the search prompt open
(
copy-mode-search).
Alternate screen
Copy-mode is unavailable while the pane shows an alternate screen (vim, less, a full-screen agent TUI). Use mouse drag-selection there — it works even when the app owns the mouse.
Keys
| Keys | Action |
|---|---|
| h j k l / arrows | Move the cursor |
| w / b | Next / previous word |
| 0 / $ (Home / End) | Start / end of line |
| g / G | Top of scrollback / bottom |
| Ctrl+u / Ctrl+d | Half page up / down |
| Ctrl+b / Ctrl+f (PageUp / PageDown) | Full page up / down |
| v | Start a character-wise selection |
| V | Start a line-wise selection |
| y / Enter | Copy the selection and leave copy-mode |
| / / ? | Search forward / backward |
| n / N | Next / previous match |
| q / Esc | Leave copy-mode |
In the search prompt, Enter runs the search and Esc cancels it. Matches are highlighted in the pane.
Mouse selection
Outside copy-mode, dragging in any pane selects text and copies it on release — including inside apps with mouse reporting (opencode, vim, less). Scrolling over a pane that doesn't report the mouse scrolls its scrollback.