[Geany] Plugin keybindings support in SVN

Nick Treleaven nick.treleaven at xxxxx
Wed Mar 12 17:30:02 UTC 2008


Hi all plugin authors,
I've just merged plugin keybindings support into the trunk. This allows
plugins to add configurable keybindings which are set just like Geany
keybindings.

To do this it was necessary to break the keybinding commands into
groups, so the plugin API has now broken for any plugins using
p_keybindings->send_command(). The good news is that by grouping
keybindings the plugin ABI can stay stable when we add any keybindings
to the core.

For the details on how to add keybindings to your plugins please see
plugins/htmlchars.c, and post here if you need more information.

Basically you use the new PLUGIN_KEY_GROUP macro to declare a
keybinding group, then initialize each keybinding in init() using
p_keybindings->set_item(plugin_key_group, ...)

Regards,
Nick



More information about the Users mailing list