Hi again!
I go to Preferences->Keybindings, I set collapse all to look up some specific menu, I expand a menu and set a specific keybinding, I close the window to try it, maybe I dislike it and I wanna change it back; so I again go to Preferences -> Keybindings but again all the menus are expanded and I have to look up again for the specific keybinding. I think that Geany should remember how you left collapsed/expanded menus last time.
Whereas a search bar it's added for the keybindings or not, this would be appreciate.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/645
Since you asked nicely on IRC some suggestions :smile:
The keybinding treeview in prefs is reloaded each time the dialog is shown, thats why previous state of expanders is lost. You would need to ensure that you are informed of expand/contract occurrences (they may happen in GTK without Geany intervention, not sure), store that state somewhere and re-apply it after the treeview is re-loaded.
But the catch is that the number and order of sections can change as plugins are enabled and disabled (ok, the Geany part won't change, but the plugins part will). Not sure how to handle that.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/645#issuecomment-152526918
Hmmm I think the GtkTreeView stores all the info about what's being collapsed and expanded. I was looking for a way to get the data corresponding to that info inside the GtkTreeView, store it inside Geany and look for the way to rebuild the tree from that data. But I haven't found anything from GTK to be able to follow that "easy" approach.
It's true things become more complicated as plugins can be enabled/disabled. We could solve it like this: 1. whenever a plugin becomes enabled, It starts with its keybindings expanded. 2. meanwhile keeps enabled, data about whether it's expanded/collapse is stored as others. 3. whenever a plugin becomes disabled, the data stored for the GtkTreeView is removed.
Anyway, it's becoming harder than I expected.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/645#issuecomment-152592264
github-comments@lists.geany.org