Well, it's not really "what I want", but what should be, because, again, OPML is an outline exchange format.
With the command "read-opml-file",
Leo imports
just fine the iPhone-generated "Document.opml" file I attached
previously here. Why can't it export it back in the same format with
"write-opml-file" so that I can edit it further on the phone?
The Leo OPML file should be standard so that it could be transmitted back and forth and edited by any Windows, Mac,
Linux
, IOS, and Android OPML-aware app/program, then returned to Leo for further editing.
I'm talking about only the basic text outline, which is what OPML is about: even clones should be changed into copies before conversion to .opml. A script in Leo could rebuild the cloning after re-import, I guess.
There are many such OPML-capable apps/programs, disk-based or cloud-based: other outliners, mind-mappers, note-takers, to-do listers, task managers, workflow managers, converters, dozens of RSS/Atom feed aggregators and readers, etc. This back -and-forth editing is impossible with the .opml produced by Leo. If it's not OPML, don''t call it OPML.
Scripting .leo or .leojs conversion to true .opml is fine, but impossible on an IOS or Android device because of apps sandboxing.
My usage case: Brainstorming, note-taking, project developpment, writing.
I have a sync folder on all my Windows, macOS, IOS, and Android devices at home, where I work. Outside the home, I carry my iPhone and iPad mini.
With an OPML-compliant Leo, I could create
a text-only outline
about some project, save it as .opml in the sync folder of my PC. It would get instantly synced to all the other devices. When I go to a meeting or get an email while away, I want to integrate the email text or the meeting notes into the outline, on my iPhone or iPad. The changed outline is automatically transmitted via 5G, and when I get home, I could open it in
OPML-compliant
Leo, and continue working on it.
This is now possible with OmniOutliner, but only on Apple devices, and most of my workflow is organized around 30 years of Windows use, with complex programs I know like the back of my hand, utilities, batch scripts, registry hacks etc. That is why I need an outline editor on Windows, and why I need OPML, which is the only universal outline file format that can be opened, modified and saved, when the spec (
http://opml.org/spec2.opml) is respected.
Chris
P.S.
I'm also considering using Leo as a PIM/scrapbook, but that wouldn't require OPML.