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

Constrain cursor to line in normal mode #36

Open
diocletiann opened this issue Jul 18, 2024 · 2 comments
Open

Constrain cursor to line in normal mode #36

diocletiann opened this issue Jul 18, 2024 · 2 comments

Comments

@diocletiann
Copy link

Vim doesn't wrap the cursor in normal mode, I think it would be helpful if it behaved the same way in evil-helix. Thanks for the fork!

@usagi-flow
Copy link
Owner

Great suggestion. Seems like the current behavior is baked in Helix and not configurable. I might have to adjust nth_next_grapheme_boundary() / nth_prev_grapheme_boundary() for this, although a better solution would be welcome.

@diocletiann
Copy link
Author

diocletiann commented Jul 22, 2024

Actually, Vim also doesn't do it in insert or visual mode.

When I tried making a toy editor with ropey my naive implementation was to check for caret.column == 0 when moving left and rope.char(caret.column + 1) == '/n' when moving right.

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

No branches or pull requests

2 participants