[Geany-Users] Sorting a selection of code

rch rch at xxxxx
Sun Apr 16 07:39:17 UTC 2017


    Line Operations' option to
        Sort Lines Ascending||Descending
    looks good

    But when I try it, instead of sorting my Selection,
    it sorts the whole file ...

    Whereas in the same file, Geany's
        Edit->Format->Send Selection to->Sort
    sorts just the Selection, as expected

    So what am I doing wrong?

     Richard H
    [Geany 1.30.1 on Ubuntu 12.04]
--

On 04/16/2017 02:03 AM, Little Girl wrote:
> Hey there,
> 
> R.Mariotti wrote:
> 
>> A while back I read on this list how one could select a section of
>> code and then trigger a sort of the contents while in the editor.
>> I've searched the archives but cannot seem to find the reference.
>>
>> Does anyone remember how one can accomplish that task and advise
>> -OR- link to a similar tool for use within geany?
> 
> You'll need the Line Operations plug-in, from your package manager
> or from here: https://plugins.geany.org/
> 
> Once you have that installed, go here:
> 
> Tools --> Line Operations --> Sort Lines Ascending
> 
> or:
> 
> Tools --> Line Operations --> Sort Lines Descending
> 


More information about the Users mailing list