keybindings.ctrl.alt.w = "SearchInFiles.new(self)"
or
keybindings= "bindings['ctrl' + 'alt' + 'w'] = proc {
SearchInFiles.new(self }; bindings['ctrl' + 'w'] = proc {Something}"
Thoughts?
I like it. another option would be
> user_keybinding.ctrl.shift.c="some code"
I almost wish for more flexibility of being able to run your own code
if desired, like
> user_keybinding.ctrl.shift.c=" if File.exist?('a') ActionEvent.new(self); end"
Or perhaps
> user_keybinding.ctrl.shift.c="proc {|handle_to_current_tab| if(File.exist? File.dirname(hand_to_current_tab.filename) + "/../../test/abcdef" RunRubyFile("../test/abcdef"); else..."
But maybe that's overkill?
-r
Ahh I understand now.
You can define
user_keybinding.c.event_class=ActionEvent
user_keybinding.c.event_args={'action'=>"do_otherthing"}
then on_action_event
you can check for state like "what file is being worked on" via
AgMultiEditor.raised # current file
That should be fine. I should probably refactor some of my plugins to
work like that, sometime :)
-r