-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
feat: added line-wise select mode #2637
Conversation
This mode seems unnecessary to me. You can extend lines down and up with But even if there's good reason to add a line-wise select mechanism, this should be implemented as a sticky menu like |
I agree, there doesn't seem to be much benefit to just selecting a range then using |
Yeah, I find it not being very useful feature wise since we can achieve similar things that can be done here, |
Heck, I was wondering why |
For that, you can do |
Alright I understand. |
Can this PR potentially be re-considered? I believe that a true line-wise mode would be incredibly useful for composability. The only way to have line-wise select keybinds that is both symmetrical and composable is to use Any other solution requires you to have different keybindings for selecting lines above and below. I think it's rather awkward & inelegant for a very primitive movement. |
These bindings create a poor-man's line-wise mode that you enter with
The trick is to make each command end with |
Hello there !
This PR adds an equivalent to vim's V-LINE mode, here called line-select mode, that I've always been missing in Helix.
It allows the user to select lines up and down while automatically flipping the selections when the range head crosses the anchor. It also handles count and goto start/end of file.
The commands are usable from any other mode.

(the keymap in this GIF demo is old code, don't mind it !)
Thanks and have a good day !