-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Vim like alignment/wrap of selected lines across multiple paragraphs #7176
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:
|
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. |
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 |
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?).
|
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 ? |
You're looking for |
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 |
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. |
You actually can remove a selection with To reflow each paragraph seperately I would split each paragraph with |
ah this is a duplicate of #2419 see that for some more info |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Below is the screenshot of original document and then it is followed by a screenshot of wrapping of the selected lines
by vim and then helix.
Consider the following text as apart of a larger document and the user has selected the following lines of text.
Original:
Text wrapped with vim (Commands - Select lines and
gw
, text width set at 100)Text wrapped with Helix (command :reflow , text width set at 100)
Not sure if
reflow
is the correct command here, but I'd like to get a similar behavior of wrapping text across multiple paragraphs like vim, which in my opinion is the correct wrapping.The text was updated successfully, but these errors were encountered: