Replies: 1 comment
-
this was quite confusing to read because there are no Making selected variants of the
This is what |
Beta Was this translation helpful? Give feedback.
-
this was quite confusing to read because there are no Making selected variants of the
This is what |
Beta Was this translation helpful? Give feedback.
-
I commonly prefer the
select
variations ofextend
commands, as they don't preserve where you started the selection, which is more intuitive for me.select_line_below
andselect_line_above
are a godsend. However, manyextend
binds don't haveselect
alternatives.I specifically ran into this with
extend_to_first_nonwhitespace
andextend_to_line_end
. I had these bound toH
andL
respectively, and I was hoping that a key sequence likeHL
would select all the way to the left, then select all the way to the right from the left, therefore selecting the entire line. However, because of how extend binds worked, this just selected the left half, then selected the right half.I originally tried to get working behavior through something like this (done through home-manager):
This worked for a single line, but by necessity, if I had any other lines selected, it would deselect them. I don't believe there's a key combination that would replicate my ideal behavior here, where it wouldn't deselect previous lines, but it also wouldn't care about where you started the selection.
In my ideal solution, these binds would be added:
select_to_line_start
select_to_first_nonwhitespace
select_to_line_end
select_to_line_end_newline
Beta Was this translation helpful? Give feedback.
All reactions