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.
Uh oh!
There was an error while loading. Please reload this page.
-
I commonly prefer the
selectvariations ofextendcommands, as they don't preserve where you started the selection, which is more intuitive for me.select_line_belowandselect_line_aboveare a godsend. However, manyextendbinds don't haveselectalternatives.I specifically ran into this with
extend_to_first_nonwhitespaceandextend_to_line_end. I had these bound toHandLrespectively, and I was hoping that a key sequence likeHLwould 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_startselect_to_first_nonwhitespaceselect_to_line_endselect_to_line_end_newlineBeta Was this translation helpful? Give feedback.
All reactions