On Sun, May 14, 2017 at 4:15 PM, Lang Hurst <[email protected]> wrote:

> I have two nodes that I run a `diff -y` on and use the results in a
> document. It would be cool to be able to include the node in my document
> outline and have the results of the command show up and skip a couple
> manual steps, or really setting up some inodify trigger. Does that make
> sense?
>

​I think I get the general idea.  You can do *anything* with Leo.  The only
question is how much work it will take ;-)

Some resources:

- Take a look at the node_actions.py and at_produce.py plugins.

- The BackgroundProcessManager class in leoBackground.py allows you to
coordinate with separate process.  For example, Leo's pylint command sends
its output to Leo's log pane as well as the console. You could send to a
node instead.

- The ExternalFilesController class in leoExternalFiles.py allows you to
track changes to external files.  So if a command write to a file, a
script/command can be notified when the file changes/closes.

There may already be a better solution.  Any suggestions from the peanut
gallery?

Edward

-- 
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 https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to