-
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
I think the separation of paragraphs should be retained, so I guess this would be a nice enhancement? For a workaround you can do this:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for the workaround. Its a handful tbh. Would love it if somehow this is the default behavior without going through all those keystrokes. |
Beta Was this translation helpful? Give feedback.
-
For others , an explanation about the keystrokes
Question: How did you have the insight to construct this combination ? asking coz if I have to find out something else that needs more than a few combinations, how should I go about thinking ? On another note, I would like some help with these please: Select current line with x and keep pressing x for selecting downward lines, but what needs to be pressed if I have to select lines in the upward direction from the cursor? Shift - c for multiple cursors, most of the time I accidentally add one more cursor. I then press |
Beta Was this translation helpful? Give feedback.
-
Oops I had a custom keybind (
Mostly playing around with movements I already knew to see if I can get it to work. Also the command search is very helpful (Space?).
|
Beta Was this translation helpful? Give feedback.
-
I mean is there another key combination that would start by selecting the line under the cursor and continue selecting the lines in upwards direction ? |
Beta Was this translation helpful? Give feedback.
-
You're looking for |
Beta Was this translation helpful? Give feedback.
-
Thanks. thats exactly what I am looking for.
C , adds a new cursor below. But I struggle to revert the last added cursor (doesn't matter which direction). Its like I wanted to have 5 additional cursors, but accidentally added 6 , I justnneed to undo the last addition of cursor |
Beta Was this translation helpful? Give feedback.
-
I don't think that's possible right now. There's a relevant issue, though: #1596 Edit: let's maybe move this over to a discussion if you have more questions, since this isn't really related to the issue anymore. |
Beta Was this translation helpful? Give feedback.
-
You actually can remove a selection with To reflow each paragraph seperately I would split each paragraph with |
Beta Was this translation helpful? Give feedback.
-
ah this is a duplicate of #2419 see that for some more info |
Beta Was this translation helpful? Give feedback.
You actually can remove a selection with
Alt-,
which will remove the last added selection as it will be the primary one unless you rotate your primary selection.To reflow each paragraph seperately I would split each paragraph with
S
split selections with regex, then use the\n\n
regex, then reflow. The current reflow uses https://docs.rs/textwrap/latest/textwrap/fn.refill.html which removes newlines as such it is not aware of paragraphs and at the moment seems to only really be designed for reflowing only one paragraph per selection