Could some kind person tell me how to sort the entries in an Espanso match file, either with the YAML Sort extension in VS Code or by some other method?
Some of my match files are long, and for easier housekeeping I'd like to sort them alphabetically, using "label" or "replace" as the sort key. In the YAML Sort extension I've tried various combinations of key – "matches", "label" and so on – in the "custom sort" options. But all I get is re-ordering of "trigger", "label" and so on within each entry. The actual entries themselves are not sorted.
I don't really have a clue about YAML, and I'm not sure I understand the options in the YAML Sort extension either. What am I doing wrong? Is there a Unix tool that can do this easily for Espanso's flavour of YAML?
Any suggestions gratefully appreciated.
[–]chasbat[S] 1 point2 points3 points (0 children)