Extending the action bar - passing arguments to actions
Submitted by Wednesday, 31 March, 2010 - 22:46
on
Hi all,
Long time reader, first time poster. I was thinking of adding a (probably awful) hack to the ActionBar to see if I could have the action bar do something like:
<ctrl+enter>action_name my_arg<enter>
For example, it could be "my.save.as filename.bak". Ofcourse, it would be a big effort to have this work for the built-in jEdit actions. But one could, perhaps, write a macro that took an argument like that. It would replace having to show a dialog box to collect simple input.
Any thoughts? Do you think it is possible and worth pursuing?
Cheers,
Irumat
Long time reader, first time poster. I was thinking of adding a (probably awful) hack to the ActionBar to see if I could have the action bar do something like:
<ctrl+enter>action_name my_arg<enter>
For example, it could be "my.save.as filename.bak". Ofcourse, it would be a big effort to have this work for the built-in jEdit actions. But one could, perhaps, write a macro that took an argument like that. It would replace having to show a dialog box to collect simple input.
Any thoughts? Do you think it is possible and worth pursuing?
Cheers,
Irumat