Macro 'on event' caller - a simple plugin that culd prove very handy!
Submitted by Friday, 20 June, 2008 - 11:00
on
I think it could prove very useful to have a plugin that facilitated the configuration of (in each case) a marco to be automatically executed on (for example) the following state-transitions within a jEdit session.
Buffer focus changing, File opening, File saved, File closed (last associated buffer closing), directory in FileBrowser changing
The plugin's option panel would permit the selection of an installed macro (using a dropdown) for each event type supported.
I'm sure there are many more such events for which a macro invocation would prove useful.
Another enhancement for the plugin would be a public API which permitted other plugins to register their own events (by passing a descriptor string, and then invoking another function when the event is to be actioned).
Buffer focus changing, File opening, File saved, File closed (last associated buffer closing), directory in FileBrowser changing
The plugin's option panel would permit the selection of an installed macro (using a dropdown) for each event type supported.
I'm sure there are many more such events for which a macro invocation would prove useful.
Another enhancement for the plugin would be a public API which permitted other plugins to register their own events (by passing a descriptor string, and then invoking another function when the event is to be actioned).