fava icon indicating copy to clipboard operation
fava copied to clipboard

Add sort lines option to the editor

Open tzontron opened this issue 4 years ago • 1 comments

Extend CodeMirror to provide Sorting ascending/descending lines selection option

for eg.

2018-08-04 price VBMPX                              63.48 USD
2017-08-04 price RGAGX                              64.31 USD
2016-08-04 price ITOT                              184.36 USD
2014-08-04 price VEA                               228.73 USD
2017-08-04 price VHT                               117.19 USD
2017-05-04 price GLD                                73.91 USD

should become (ascending)

2014-08-04 price VEA                               228.73 USD
2016-08-04 price ITOT                              184.36 USD
2017-05-04 price GLD                                73.91 USD
2017-08-04 price RGAGX                              64.31 USD
2017-08-04 price VHT                               117.19 USD
2018-08-04 price VBMPX                              63.48 USD

Two options can be added under the edit menu:

  • Sort (ascending) Ctrl+Alt+)
  • Sort (descending) Ctrl+Alt+(

tzontron avatar May 20 '21 01:05 tzontron

A PR for this would be welcome :)

yagebu avatar Jul 31 '21 10:07 yagebu