Hi! I want to make a feature request for the "Line Operations" plugin, it will be nice to have a "Reverse" option which will sort the selected lines in the reverse order! For some reason, I keep coming across the need for this feature :grin:
There is already a sort descending IIUC. Or do you not mean "sort" but just reverse the order of the lines?
@elextr The latter, "sort" them in the order of the lines, but in reverse. Basically reverse the lines so that: ``` 1 2 3 ``` becomes: ``` 3 2 1 ```
"Sort" usually means order based on the value of the line contents, and forward and reverse sort is already available.
But just to confirm, your request is for simply reversing the order of the lines independent of the content.
(your example could be either).
Sorry, that was a bad example, I updated it to remove the ambiguity.
@TheDcoder FWIW, you can do this using just Geany:
![tac](https://user-images.githubusercontent.com/181177/104349566-f28ce380-54b7-11e...)
https://www.geany.org/manual/current/#sending-text-through-custom-commands
@codebrainz why didn't anyone tell me about the `tac` utility before?! I better go through them all now :grin:
By the way, this feature won't be available to Windows users so it is still worth considering a native independent solution.
A quick google shows a number of similar utilities on Windows, not sure how hard they would be to set up. But the line operations maintainer may entertain a well written pull request.
github-comments@lists.geany.org