Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add CursorMove for next end of word #75

Merged
merged 6 commits into from
Jul 31, 2024

Conversation

achristmascarl
Copy link
Contributor

for #74; it's a pretty niche use case though, so I understand if it doesn't make sense to merge.

I realized the existing find_word_end_forward() doesn't have the same behavior as going to the next end of word in vim, as it instead places the cursor immediately after the last character at the next end of word.

So, I added a find_word_end_next(), which more closely emulates the expected behavior (moving the cursor on top of the last character at the next end of word).

Copy link
Owner

@rhysd rhysd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you for adding this. I'll add some minor tweaks after merging this PR.

@rhysd rhysd merged commit d9571ca into rhysd:main Jul 31, 2024
5 checks passed
@achristmascarl achristmascarl deleted the cursor-word-end branch August 1, 2024 01:41
@rhysd
Copy link
Owner

rhysd commented Aug 1, 2024

This feature was included in v0.5.2 release.

@achristmascarl
Copy link
Contributor Author

thank you for fixing my regression 😅

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.

2 participants