helix icon indicating copy to clipboard operation
helix copied to clipboard

Is there a whichwrap option?

Open irevoire opened this issue 3 years ago • 8 comments

Hello,

I would love to have a whichwrap option like in vim. Basically, the idea would be that, when I'm at the end of a line and type right, I should just stay at the end of my line. The same goes for the start of the line and left.

Is this something planned?

irevoire avatar Sep 19 '21 23:09 irevoire

From the documentation, it sounds like the Home (start line) and End (end line) keys. https://docs.helix-editor.com/keymap.html

kirawi avatar Sep 20 '21 01:09 kirawi

@kirawi you should read the linked documentation, it's about configuring this behavior, not about specific keys :P

archseer avatar Sep 20 '21 06:09 archseer

There's no configuration option and I'm not sure if we want this to be configurable.

Currently everything wraps: h/l used to stop at the end of line but after a discussion with @cessen we removed this limitation and had it match kakoune. I personally don't use this wrapping behavior, but what's the rationale for explicitly disabling it?

archseer avatar Sep 20 '21 06:09 archseer

I would love to see this behaviour back, it was one of the reason why I went back to vim after using kakoune for ~6 months ☹️

(But overall I'm really in love with helix and don't plan to quit soon even if this behaviour is never implemented! Thanks for all the great works!)

irevoire avatar Sep 20 '21 08:09 irevoire

I personally think this can be nice to have, if a bit niche, but I don't really think there's much of a reason not to make this configurable. Though it barely affects me, I think if it were configurable, I'd turn wrapping off.

Omnikar avatar Sep 20 '21 16:09 Omnikar

@irevoire just curious what the benefit would be?

yowayb avatar Nov 19 '23 12:11 yowayb

curious what the benefit would be?

Just preventing complexity, IMO.

We've always had 4 directional keys, and making half of them go diagonally only at certain times is plain confusing.

ArijanJ avatar Jan 06 '24 14:01 ArijanJ

Yeah, especially when you have multiple cursors and by hitting right one goes to the next line :weary: Even after two years of usage I still think about it at least once a day

irevoire avatar Jan 09 '24 13:01 irevoire