plugin Sum Lines

Plugins for SynWrite and CudaText...
Post Reply
qwerky
Posts: 172
Joined: 21.10.2013 00:58

plugin Sum Lines

Post by qwerky »

Sum Lines plugin. Each time try to download, gives error. Click 'Try Again' and it installed.

Make selection in text, then from Plugin menu, select Sum Lines. It opens new tab, but tab is completely empty.
Ah... it only works with lines that contain nothing at all but numbers? And, it only works with normal selection, not column selection.

This:
1
2
49
83
279

Normal selection gives proper results. Column selection results show just one line.

This would be a really handy plugin, if lines could contain anything, say 'description/cost', and then user could column select just the 'cost' column and apply plugin.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Hm. I dont fully understand: give me example of such file to test. seems you want to sum Column selection.
qwerky
Posts: 172
Joined: 21.10.2013 00:58

Post by qwerky »

Alexey wrote:Hm. I dont fully understand: give me example of such file to test.
So, if the file is this:
1 hi
2 bye
49 good morning
83 good evening
279 good night
and normal-select the whole thing, then SUM gives just an empty tab.

But if the file is just numbers:
1
2
49
83
279
and normal-select the whole thing, then SUM works well. If column-select, then SUM shows results for just one line (instead of five).
seems you want to sum Column selection.
Exactly! If the file is this:

Code: Select all

ITEM            PRICE
------------    ------
Chair           100.00
Sofa            150.00
End Table        70.00
Coffee Table     80.00
Lamp             50.00
============    ======
                     ?
Then what would be great is to column-select the numbers and do SUM.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

OK-Done! Updated:
+ plugin rewritten, to support normal/column selections
+ report text shows: type of selection, indexes of selected lines/cols
+ set report tab title to "Sum Lines"
qwerky
Posts: 172
Joined: 21.10.2013 00:58

Post by qwerky »

Alexey wrote:OK-Done! Updated:
+ plugin rewritten, to support normal/column selections
+ report text shows: type of selection, indexes of selected lines/cols
+ set report tab title to "Sum Lines"
Excellent (and fast), thanks! Works as advertised :D . This will be very helpful.
unsichtbar
Posts: 1
Joined: 06.11.2018 23:54

Post by unsichtbar »

Hi, is there an update also for the synwrite-version of the Sum Lines plugin ?
The cuda version of this plugin is not working with synwrite.
Thanks
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

SynWrite is frozen, I can update SW version but only for donation, e.g. 50$
Post Reply