-
Helix currently allows users to select multiple adjacent lines using the A potential solution is to introduce the |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
Shift X will not extend the selection to multiple lines. So when you have a cursor on an empty line the behavior between X and Shift X is different (X will extend to the next line in that case). |
Beta Was this translation helpful? Give feedback.
-
Try this: press v and then k. It will deselect the last line. Then v again to exit select mode if you want. |
Beta Was this translation helpful? Give feedback.
-
There seems to already be a command for extending a line up. All I had to do was add this to my config: [keys.normal]
X = ["extend_line_up", "extend_to_line_bounds"]
A-x = "extend_to_line_bounds"
[keys.select]
X = ["extend_line_up", "extend_to_line_bounds"]
A-x = "extend_to_line_bounds" The Alt x keybindings are there so I still have access to the old Shift x command. |
Beta Was this translation helpful? Give feedback.
-
Yep, plus you should add |
Beta Was this translation helpful? Give feedback.
-
If you selected one or few extra lines and wish to deselect the extra lines, just enter visual mode |
Beta Was this translation helpful? Give feedback.
-
Using the new |
Beta Was this translation helpful? Give feedback.
There seems to already be a command for extending a line up.
All I had to do was add this to my config:
The Alt x keybindings are there so I still have access to the old Shift x command.
Though this removes the shrink_line_bounds bindings, which I honestly have never understood what its for and how it works.