Code Block
Copy Code Block
Focus a code block by pressing y or c to enter code select mode, then press Ctrl+Y or Enter to copy its content to the clipboard.
Ctrl+Y alone (outside select mode) copies the first visible code block on screen.
| Key | Action |
|---|---|
y / c | Enter code select mode |
Ctrl+Y | Copy focused (or first visible) code block |
Enter | Copy focused code block |
Esc | Exit code select mode |
Toggle Line Numbers
Press Shift+L to toggle line numbers inside code blocks. You can also enable them by default via config:
code-line-numbers = true
Hit Bounds
Code blocks accept mouse clicks across their full rendered width, giving a more forgiving click target.
Hover
Hover highlights are disabled on code blocks to keep the rendered output stable while scrolling.