Hi Rengel,

Leo does have that, though from your confusion I guess it's not highlighted
well. The command is "execute-script", and bound by default to Ctrl-B. It's
introduced in http://leoeditor.com/tutorial-scripting.html#hello-world (and
there's an "all you can eat" version at http://leoeditor.com/scripting.html).
It appears the "Programming with leo" chapter presupposes one has tried
scripting first.  :)

It uses the python interpreter being used to run Leo itself. Messages which
normally go to console (e.g. "print('Hello')") will be lost if you're
running in console-less mode (pythonw.exe instead of python.exe, on
Windows).

Also if you need to use a virgin environment or different python version or
you'll need to create a @button to fire that up (hmmm, really should
document that...)

cheers,

-matt


On Wed, Nov 20, 2013 at 9:27 AM, Edward K. Ream <[email protected]> wrote:

> On Wed, Nov 20, 2013 at 6:04 AM, rengel <[email protected]> wrote:
>
> It really would help if Leo could offer a similar functionality.
>>
>
> Ctrl-B.
>
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to