Perhaps I am not using the correct version. I noticed that I do not have the plugin options for
leoscreen-run-all-text or leoscreen-run-all-here On Wednesday, November 14, 2012 9:14:23 AM UTC-5, ErikTheRed wrote: > > This seems just like the function that I am looking for. Awesome! I am > however having either an issue or I don’t understand something about its > implementation. > > I can successfully pass a commend from the body of a leo node that I have > created, e.g. lsof | grep -i crypto, and it passes it to the active > instance of screen. > It however doesn’t seem to execute however. I can see it at the command > line in my instance of screen awaiting a carriage return. > > If I manually execute a carriage return however I am able to return its > results back into leo using the leoscreen-get-line, get-all, get-note or > show-note. > > Is seems like it should execute the command being passed? Please Advise. > > > > On Friday, November 9, 2012 3:22:38 PM UTC-5, Terry wrote: >> >> On Fri, 9 Nov 2012 12:04:40 -0800 (PST) >> ErikTheRed <srda...@gmail.com> 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.htmlthat >> > 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 view this discussion on the web visit https://groups.google.com/d/msg/leo-editor/-/Baqv995OhnYJ. To post to this group, send email to leo-editor@googlegroups.com. To unsubscribe from this group, send email to leo-editor+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.