Symbol viewer sorting default direction is ^ (z...a). The head button "Symbols ^" has to be clicked after every launch if one prefers a...z. The sorting direction is not stored on quit. KDE Plasma Version: 5.15.3 KDE Frameworks Version: 5.56.0 Qt Version: 5.12.2
The code in https://cgit.kde.org/kate.git/tree/addons/symbolviewer/plugin_katesymbolviewer.cpp seems to only preserve the sorting order, but doesn't set a default order.
I've been looking at this for a bit, and while there shouldn't be any big technical issues with this, there is a question about the design. At the moment, only the changes to the settings on the Symbol Viewer Configuration Page are saved. There is a checkbox to «Always sort symbols», but no setting for the sort direction. In the Symbol Viewer it is possible to turn on and off sorting, and to set the direction. Changing the settings here have no impact on the configured settings however, and are never stored. Should we: A) Change the configuration page to add a sort direction option? B) Change the settings behaviour for Symbol Viewer, so that the changes made in the Symbol Viewer itself are stored?
suggestion C: set default sorting to "a-z" with no setting stored. My guess is that the desire for inverse sorting direction is rather rare.
If anyone likes, give this a chance https://github.com/loh-tar/KatePlugin-IndexView
Git commit c68a443e73c7db5bde7de1e20fcff3513a1ed3ba by Tore Melangen Havn. Committed on 12/09/2019 at 16:25. Pushed by torehavn into branch 'symbolviewer-sorting'. Added a line to set default sort order for the Symbolviewer. M +2 -0 addons/symbolviewer/plugin_katesymbolviewer.cpp https://invent.kde.org/kde/kate/commit/c68a443e73c7db5bde7de1e20fcff3513a1ed3ba
Git commit c68a443e73c7db5bde7de1e20fcff3513a1ed3ba by Tore Melangen Havn. Committed on 12/09/2019 at 16:25. Pushed by scmsync into branch 'symbolviewer-sorting'. Added a line to set default sort order for the Symbolviewer. M +2 -0 addons/symbolviewer/plugin_katesymbolviewer.cpp https://commits.kde.org/kate/c68a443e73c7db5bde7de1e20fcff3513a1ed3ba
(In reply to Lothar from comment #4) > If anyone likes, give this a chance > https://github.com/loh-tar/KatePlugin-IndexView Thanks. I'll look more on this when I'm a bit more experienced, and see if it's something I can include.