@guy038 said in Change of the selection mode:
Open the search dialog ( Ctrl + F )
I just tried that. Then I tried doing just a Ctrl+A to select all the text more simply, and the Alt+Shift+UpArrow trick still worked to turn that stream into a zero-width column. That’s actually useful, as I often like getting a column at the beginning of the line. (It’s useful for going the other way – using the column editor to insert the line numbering.)
But be warned: if the final line of the file doesn’t have a newline, then my method will end up selecting a rectangle from the end of the last line to the beginning of the first line:
5380904c-9ee6-4c11-a985-d3ba42f4f6c9-image.png
The regex version avoids that by making sure it only selects lines that end with a newline.
This usually won’t be a problem for me, since I usually have a newline at the end of my file. I’ve just created a macro of the Ctrl+A then Alt+Shift+UpArrow sequence, and assigned a shortcut. It might just enter my standard workflow. So thanks, @guy038.
Actually, I just found another difference. @guy038’s regex vesion will only select a “paragraph” worth, since it will stop at the first blank line. So if you have
intro 1. blah 2. blah 10. blah endingIf your cursor is on intro or the line after, the regex will select the list. But if you’re on line 1. blah, then it will only select 2 and 10. And if you’re on the last line of the list, then it will actually select the ending paragraph.
So it depends on what quirks you want, and whether you want “paragraph” or “whole document”, whether you should record the macro with my Ctrl+A or @guy038’s regex, or a slightly modified regex to match your most common use case(s). Since macros record searches, any of those could be made into a macro for a single-keystroke for what you want.