Roaming cursor for selecting inside blocks - #75
Open
lawrencegripper wants to merge 5 commits into
Open
lawrencegripper wants to merge 5 commits into
lawrencegripper wants to merge 5 commits into
Conversation
A list was one block, so j/k stepped over a whole findings list and c commented on all of it. Items open a block each; nested content stays with its item.
Block mode had no row movement, so a keyboard selection always anchored at the block's first row. o enters roaming: the visual motions move the cursor with nothing selected, v anchors there, Esc or a block key returns. Motions are shared with visual mode.
Roaming reaches any line of a list, so splitting it into item blocks bought little and changed rendering (a block gap between bullets) and the block model for everyone. Decision 15 records why.
The first version used three one-line items, so j moving a row and j moving a block were indistinguishable.
Closer to vim: i steps into the block the way insert mode steps into a line, and o carries unrelated meanings (open a line, swap visual ends).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Love the project, thanks for working on it, been massively improvement in my loop using this with the herdr plugin.
PR addresses one nit where I want to comment on a single line from a block.
This PR adds that with:
ostarts movable cursor, c to start copy, v to stop then c to commentCleanShot.2026-09-18.at.13.16.16.mp4