On Sun, Feb 22, 2009 at 10:55 AM, Ville M. Vainio <[email protected]> wrote:

> (or anthing else) and then runs the command. This is just a trivial
> special of the generic hook.

special CASE...

So how should we proceed?

I suggest we do create CommandChainDispatcher in g namespace:

g.act_on_node = CommandChainDispatcher()

And call g.act_on_node(c,p) on alt+a.

Then you could create your own handlers easily in scripts:

def act_check_url(c,p):
  if not p.h.startswith('@url'): raise g.TryNext
  jump_to_url(p.b.splitlines())[0].strip())

g.act_on_node.add(act,check_url, priority = 10)

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to