evil-helix icon indicating copy to clipboard operation
evil-helix copied to clipboard

Constrain cursor to line in normal mode

Open diocletiann opened this issue 1 year ago • 2 comments

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!

diocletiann avatar Jul 18 '24 23:07 diocletiann

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.

usagi-flow avatar Jul 22 '24 15:07 usagi-flow

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.

diocletiann avatar Jul 22 '24 22:07 diocletiann

I believe this issue is fixed with #66?

thomie avatar Apr 14 '25 18:04 thomie

Yes, I found the PR after opening this issue.

diocletiann avatar Apr 14 '25 19:04 diocletiann