On Wed, Mar 12, 2008 at 12:30 PM, Nick Treleaven <[EMAIL PROTECTED]> wrote: > Hi all plugin authors, > For the details on how to add keybindings to your plugins please see > plugins/htmlchars.c, and post here if you need more information.
Another thing I would like some clarification about - Toggling a plugin off/on in the plugin manager causes it to forget any saved keybinding settings. Which seems logical for a lot of cases, if you don't want the plugin enabled, then you probably don't want its settings cluttering up the config file. For plugins with only a couple of keybindings, this is not really a problem for the user to go back and reconfigure the settings. But since people are already talking about 12+ keys for the Lua plugin, I hated to see this information lost without warning at the click of a checkbox, so I added some code to let the Lua plugin save it own keybindings to its own config file when it is unloaded. IMO, this is the best approach, if a plugin wants its keys saved when it is unloaded, then it is the responsibility of the plugin to save them. Does anyone else feel differently? - Jeff _______________________________________________ Geany mailing list [email protected] http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
