Hi all,

I've been toying around with a few things lately, and I've hit a situation
where I want several @rclick nodes to do something very similar --
something that can be keyed off of their headlines.  That way I could just
copy and paste the nodes and change the headlines and everything would
hopefully just work.

basically, the code in each @rclick would be something like:

@rclick foo
---
value = myHeadline[8:]
do_the_thing(value)
---

Which would end up calling do_the_thing('foo').  But I'm stuck on how to
get myHeadline -- 'p' is of course the position of the currently selected
node, not the @rclick itself.  Is there some API to grab the position (or
vnode?) of the executing script?

It's no big deal if this isn't possible, but it would be really convenient
if it were.  I've poked around the source and haven't found what I'm
looking for, but maybe I'm not looking in the right places.

Thanks for any pointers!
Jake

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAJ1i%2BSYHz3XzhOzG2Wq7aV44w4SORkFAukFnkaf1zfT2_jYTTA%40mail.gmail.com.

Reply via email to