Re: Round-trip to shell script

2019-08-14 Thread Rob
Thanks, will look at that one also.

Rob...

On Tuesday, August 13, 2019 at 3:49:44 PM UTC-4, vitalije wrote:
>
> You can try md_docer.py plugin. I remember writing it for someone with 
> similar problem. Using it you can define one or more transformer scripts 
> with the headline like "@transformer mytransformer". This script has access 
> to g, c, p and out vars. Out is a file like object. Script should write its 
> output to out. Nodes with the headline like " @transform-node 
> mytransformer(somegnx)" will have the output of transformation mytansformer 
> of node with the given somegnx.
>
> Transformations can be executed as minibuffer command or by default on 
> every save.
>
> HTH Vitalije
>
>

-- 
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/7cbe1f93-d26f-4d86-9050-3106f615a7c1%40googlegroups.com.


Re: Round-trip to shell script

2019-08-13 Thread vitalije
You can try md_docer.py plugin. I remember writing it for someone with similar 
problem. Using it you can define one or more transformer scripts with the 
headline like "@transformer mytransformer". This script has access to g, c, p 
and out vars. Out is a file like object. Script should write its output to out. 
Nodes with the headline like " @transform-node mytransformer(somegnx)" will 
have the output of transformation mytansformer of node with the given somegnx.

Transformations can be executed as minibuffer command or by default on every 
save.

HTH Vitalije

-- 
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/73f36070-d6e2-4595-bbf3-62fb15162b09%40googlegroups.com.


Re: Round-trip to shell script

2019-08-13 Thread Terry Brown
On Tue, 13 Aug 2019 08:57:03 -0700 (PDT)
Rob  wrote:

> There was also a reference to the leoscreen.py plugin, but that won't
> load w/o errors; perhaps not compatible w/ Python 3?

Not sure about Python 3 compatibility, but it works exclusively with
the `GNU screen` terminal multiplexer, a unix thing.  Very handy in
that context because you can interact with any command line driven
thing (Python, R, SQL, Bash, etc., etc.) from the Leo body pane, but no
use outside that context.

Cheers -Terry

> On Tuesday, August 13, 2019 at 11:39:08 AM UTC-4, Rob wrote:
> >
> > Thanks, will take a look.
> >
> > On Tuesday, August 13, 2019 at 11:33:33 AM UTC-4, gar wrote:
> >>
> >> Look at the plugins. 
> >> I didnt try any, but looks like 'at_produce' or 'interact' plugins
> >> are for you.
> >>
> >>>
> >>>
> 

-- 
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/20190813112648.392213cb%40lakeview.


Re: Round-trip to shell script

2019-08-13 Thread Rob
So, not useful for Windows, then. Same also applies to interact.py as it's 
for bash commands.

I did find that at_produce.py works (so far anyway).

Rob...

On Tuesday, August 13, 2019 at 12:26:52 PM UTC-4, Terry Brown wrote:
>
>
> Not sure about Python 3 compatibility, but it works exclusively with 
> the `GNU screen` terminal multiplexer, a unix thing.  Very handy in 
> that context because you can interact with any command line driven 
> thing (Python, R, SQL, Bash, etc., etc.) from the Leo body pane, but no 
> use outside that context. 
>
> Cheers -Terry 
>
> > On Tuesday, August 13, 2019 at 11:39:08 AM UTC-4, Rob wrote: 
> > > 
> > > Thanks, will take a look. 
> > > 
> > > On Tuesday, August 13, 2019 at 11:33:33 AM UTC-4, gar wrote: 
> > >> 
> > >> Look at the plugins. 
> > >> I didnt try any, but looks like 'at_produce' or 'interact' plugins 
> > >> are for you. 
> > >> 
> > >>> 
> > >>> 
> > 
>

-- 
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/edf7fa20-a5b0-491f-ac25-115618fed162%40googlegroups.com.


Re: Round-trip to shell script

2019-08-13 Thread Rob
There was also a reference to the leoscreen.py plugin, but that won't load 
w/o errors; perhaps not compatible w/ Python 3?

On Tuesday, August 13, 2019 at 11:39:08 AM UTC-4, Rob wrote:
>
> Thanks, will take a look.
>
> On Tuesday, August 13, 2019 at 11:33:33 AM UTC-4, gar wrote:
>>
>> Look at the plugins. 
>> I didnt try any, but looks like 'at_produce' or 'interact' plugins are 
>> for you.
>>
>>>
>>>

-- 
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/decb3c1d-aa97-4b8f-a13f-0c4ce197f48a%40googlegroups.com.


Re: Round-trip to shell script

2019-08-13 Thread Rob
Thanks, will take a look.

On Tuesday, August 13, 2019 at 11:33:33 AM UTC-4, gar wrote:
>
> Look at the plugins. 
> I didnt try any, but looks like 'at_produce' or 'interact' plugins are for 
> you.
>
>>
>>

-- 
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/e8b92341-c756-43d7-9c06-93e4a6c53b86%40googlegroups.com.


Re: Round-trip to shell script

2019-08-13 Thread gar
Look at the plugins.
I didnt try any, but looks like 'at_produce' or 'interact' plugins are for
you.

вт, 13 авг. 2019 г. в 18:27, Rob :

> This is probably a simple Python script, but my searches online have been
> more confusing than clarifying as I'm not experienced enough w/ Python to
> sort it all out. The few I tried didn't work.
>
> I am (re)discovering how useful pandoc is and now use it frequently w/
> stuff I write in Leo (mostly rst and md) to create .odt, docx, .tex and
> .html output. Current workflow:
>
>1. Write pandoc command line instructions in Leo (they can be quite
>long and I can save and use them again later).
>2. Copy node text to clipboard and paste into a Powershell window.
>3. Execute the pandoc command.
>4. If output is stdout, then copy output to clipboard and paste into
>another Leo node for additional work if necessary.
>
> What would be cool and convenient is do all of that with one script, as in:
>
>
>1. Copy node text containing the pandoc commands (already have a
>script for that part).
>2. Send to shell and execute.
>3. Return result back to Leo into a new node (perhaps a child, perhaps
>not).
>
> Seems there would be other use cases for sending commands to a shell and
> retrieving results back into Leo besides pandoc. Any suggestions on where
> to start?
>
> Rob...
>
> --
> 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/8572044a-9fc4-4254-ba7e-6c0bdcba5f5d%40googlegroups.com
> 
> .
>

-- 
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/CAC%2B8SVzB12nktez-uPGyLbwbNi4S7PPzDZ5ytFj7JG4kY_jSAQ%40mail.gmail.com.