[Geany] event system

blackdog blackdog at xxxxx
Tue Jul 31 01:59:06 UTC 2007


With the advent of the plugin system i think it would be very useful if
geany had a method of firing events for plugins. Right now I have
implemented the sci_ functions in the plugin interface but of course
this is one way traffic.

One of the things i was hoping for was to be able to hook in the
non-standard haxe code completion via the plugin but this would not be
possible as the event needs to be fired from editor_start_auto_complete,
i.e. initiated on the geany side rather than the plugin side.

If the plugin interface had a means of registering a callback, 

plugin_register(AUTO_COMPLETE,myautocompletfunction) ;

which would add myautocompletefunction to a linked list of functions
for this event, then in editor_start_auto_complete it could maybe call

plugin_event(AUTOCOMPLETE, params) ;

or something to this effect would be very useful. Ultimately all
the on_ functions should do the same, firing events for any registered
plugins. 

Anyone been thinking along these lines? Similarly for key events too.

thx

bd
-- 
http://www.blackdog-haxe.com/

"It is no measure of health to be well adjusted to a profoundly sick
society." --Jiddu Krishnamurti



More information about the Users mailing list