feat: ]] and [[ move by step #28
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/step-motions"
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?
Checklist
Problem
I claimed fold motions already covered this. They do not — nothing native
selects a fold level, and a group is a fold just as much as a step is:
zjlands on four groups before reaching the second step.]zonly finds theend of the fold you are already in. A count on
zjcounts folds of any level,so
3zjis wherever three groups happen to fall.zMthenjdoes walk steps — the answer I gave — but only by collapsing thebuffer, which throws away the view you were reading.
Solution
Count-aware, and it sets
''so<C-o>brings you back. The level is readfrom the fold data already computed for
foldexprrather than from a search,so it cannot disagree with the folds.
guh.nvimmaps the same pair over diff headings, with the comment "Thebuiltin gitcommit/diff ftplugins don't map
[[/]]?" — and in a log they areequally inert, since a timestamp begins every line and column one is never a
brace.
Job buffers only; a checks list has no sections.