Add vim-style navigation chords and count prefixes to the diff view.
Motivation
Users coming from vim/less expect to type 5j to move 5 lines down, gg to jump to top, G to jump to bottom, and yy to yank. Currently only single-step j/k work; large jumps require holding the key or falling back to page-down.
Proposed bindings
| Chord |
Action |
<N>j / <N>k |
Move cursor N lines down / up |
gg |
Jump to first line |
G |
Jump to last line |
yy |
Yank current diff line to clipboard |
Digit keys 1–9 (and 0 after a nonzero digit) accumulate a count prefix; the next motion consumes it. A stray digit or unknown second key clears the pending prefix without side effects.
Notes
- Backward-compatible: plain
j/k unchanged when no prefix is active.
- Help overlay gets a dedicated "Vim" section documenting the chords.
- Pending prefix is shown in the status bar so the user can see state.
Add vim-style navigation chords and count prefixes to the diff view.
Motivation
Users coming from vim/less expect to type
5jto move 5 lines down,ggto jump to top,Gto jump to bottom, andyyto yank. Currently only single-stepj/kwork; large jumps require holding the key or falling back to page-down.Proposed bindings
<N>j/<N>kggGyyDigit keys
1–9(and0after a nonzero digit) accumulate a count prefix; the next motion consumes it. A stray digit or unknown second key clears the pending prefix without side effects.Notes
j/kunchanged when no prefix is active.