This is from the docstring of the LeoBridge. It certainly sounds like what
you want to do:
A **host** program is a Python program separate from Leo. Host programs may
be created by Leo, but at the time they are run host programs must not be
part of Leo in any way. So if they are run from Leo, th
You should be able to instantiate Leo with a null gui, and use its
variables, like g. That's what the LeoBridge does. This would construct
all the data structures that Leo needs to create outlines and import
files. (Disclaimer - I've not done this myself).
On Sunday, September 10, 2023 at 12
In the past, I’ve seen hacks like this take way too much time to maintain
and be way too fragile. I’m trying to use the Leo code to abstract away
these low level details.
On Thursday, September 7, 2023 at 11:16:21 PM UTC-4 tbp1...@gmail.com wrote:
> If your notes are not too complicated, her
If your notes are not too complicated, here's something you could do.
1. Open a Leo file with at least one of your note subtrees. Select the top
node of a note.
2. Copy the node to the clipboard (*Outline/Copy Node*).
3. Open an ordinary text editor and paste the clipboard into it.
If you save
I’ve written a program that manages media and creates playlists. It does
things like download RSS feeds, convert video to audio, sync with my cell
phone, etc.
I use Leo to keep notes. When I find media that I want to add to my Leo
notes, I manually create the node and put in my notes in the
Could you say more about what you want to accomplish? Maybe there is
another way to go about it. Do you really need to open Leo
programmatically from another program? For example, you could write some
(non-Leo) file with your program, launch Leo (from your program) with that
file on the comm
How do I create a Leo outline from within a Python program? I have a Python
program where I want to export into a Leo outline format file.
All the snippets of code I’ve found assumes the code is running within Leo.
I want to run outside LEO
I tried this:
from leo.core import leoGlobals