On Sunday, February 18, 2018 at 11:21:51 PM UTC-6, Edward K. Ream wrote: p is the position of the script for @button nodes, @command nodes and for > scripts executed by Leo's execute-script command. >
Oops. My brain spike. As you say, p is c.p. I have just created #736: Predefine script_p and script_gnx values in Leo scripts <https://github.com/leo-editor/leo-editor/issues/736>, with a 5.8 milestone. You could create your own execute-script command if you need this feature now. Edward P. S. My first idea was that @button nodes have a "Goto Script" rclick menu item. Alas, this mechanism can't be used to solve your problem. Indeed, ScriptingController.open_gnx in mod_scripting.py knows the desired gnx to bind in the "Goto Script" callback. Leo's c.executeScript method doesn't (yet) have that data. EKR -- 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 post to this group, send email to firstname.lastname@example.org. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.