Skip to content

feat: add first-non-blank motions for ^, _, and I - #58

Open
jtams wants to merge 2 commits into
oribarilan:mainfrom
jtams:feat/first-non-blank-motions
Open

feat: add first-non-blank motions for ^, _, and I#58
jtams wants to merge 2 commits into
oribarilan:mainfrom
jtams:feat/first-non-blank-motions

Conversation

@jtams

@jtams jtams commented Jul 25, 2026

Copy link
Copy Markdown

This PR adds support for the I, _, and ^ Vim motions, all of which operate on the first non-blank character of a line.

^ was previously mapped to Home, which moves the cursor to the beginning of the line rather than the first non-blank character. This PR fixes that behavior.

It also adds support for I and _. The _ motion supports counts; for example, 3_ moves the cursor to the first non-blank character of the third line, equivalent to 2j^ in Vim.

Also adds tests covering the new behavior.

@jtams

jtams commented Jul 25, 2026

Copy link
Copy Markdown
Author

This PR resolves #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant