feat(ui): vim-style count buffer #89
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
track:api
track:auto
track:core
track:deploy
track:infra
track:ui
v0.1.0
v0.1.1
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/delta!89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/count-buffer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Motions and operators only worked on single tasks — no
5j,3dd,2bb, or5G.Solution
Add
countBufref that accumulates digit keypresses (1-9, plus 0 if digits already buffered — matching vim's0behavior). Count is consumed on the next non-digit key and multiplies the action:[n]j/[n]k— move cursor by n[n]dd/[n]pp/[n]ww/[n]bb— apply operator to n tasks from cursor[n]x— complete n tasks from cursor[n]G— go to line n (no count = last line)[n]gg— go to line n (no count = first line)pendingGandpendingOprefs now carry the count through their two-key sequences. Visual mode operators still apply to selection regardless of count. Closes #73.