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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/8572044a-9fc4-4254-ba7e-6c0bdcba5f5d%40googlegroups.com.
