On Fri, 9 Nov 2012 12:04:40 -0800 (PST) ErikTheRed <[email protected]> wrote:
> Sounds exactly what I need to master. I have found this reference example > out there but is there a simpler implementation guide and/or example? If you haven't used screen before I'd play with that a bit first just to get the idea of what it does. In Leo once you've enabled the leoscreen plugin you can view its docs. from the Plugins menu. To be honest although I wrote it I only use a couple of the features, primarily leoscreen-run-text Send the text selected in Leo's body text to the shell app. Selects the next line for your convenience. leoscreen-run-all-text Send all the text in Leo's body text to the shell app. Selects the next node for your convenience. leoscreen-run-all-here Like leoscreen-run-all-text without the inconvenient selection of the next node. leoscreen-get-line Insert a line of the last result from the shell into Leo's body text at the current insert point. Lines are pulled one at a time starting from the end of the output. Can be used repeatedly to get the output you want into Leo. I just bind those commands to keys. Cheers -Terry > http://opensourcejavaphp.net/python/Leo/leo/plugins/leoscreen.py.html that > seems to document leoscreen > > > > It seems like you'll want to run some regular python code in Leo to > > invoke external programs, using python's subprocess.Popen or the pyp > > thing you mention. > > > > But you might also get some use out of the leoscreen plugin, if you're > > in a Unix environment. If you have a shell running in the `screen` > > shell switcher the leoscreen plugin lets you send text from Leo for > > execution and pull results back in to Leo for archiving etc. > > > > I use it all the time, with CLI driven systems like SQL, R, and for > > system setup, bash. > > > > Cheers -Terry > > > -- 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.
