On Fri, 4 Jul 2008 15:08:27 +0100, Nick Treleaven nick.treleaven@btinternet.com wrote:
Hi, I'm thinking about changing the keybindings_send_command() / keybinding enums code, for two reasons: [...]
To solve this, we could have the GEANY_KEYS_ commands share a single enum, but unsorted so we can append items as needed. All the group enums could be moved into keybindings.c, renaming them so all the existing code works without changes. The only function that would need updating would be keybindings_send_command(), plus storing the GEANY_KEYS_ enum value in each keybinding struct, so that function can find the callback.
Yes, sounds fine and sounds like another bunch of much code to rewrite :D.
Regards, Enrico