Leo now supports .leojs files

29 views
Skip to first unread message

Edward K. Ream

unread,
Mar 23, 2021, 12:06:29 PM3/23/21
to leo-editor
I have just closed Leo issue #442 after merging the ekr-json branch into devel.

leoInteg issue #125 describes the format of such files. However, I have changed the assumed format of the 'globals' section. I'll be happy to make changes if Félix wants them.

The save-as-leojs command will convert any outline (.leo file) to .leojs format. The save-as-xml converts any .leojs file back to a .leo file.

I wanted to complete #442 work to keep the PR manageable. I expect Félix or I will open new issues for any desired tweaks.

Félix, please review what I have done. Thanks. We can make changes freely until Leo 6.4 final goes out the door.

Edward

tbp1...@gmail.com

unread,
Mar 23, 2021, 2:24:33 PM3/23/21
to leo-editor
I suggest a name change for save-as-xml.  "xml" is too generic. I presume you mean to save as a standard leo outline.  Maybe save-as-leo-outline, or save-as-dotleo.  Otherwise someone might suppose that the saved file will be some new xml format that isn't openable by Leo.

Edward K. Ream

unread,
Mar 24, 2021, 7:04:26 AM3/24/21
to leo-editor
On Tue, Mar 23, 2021 at 1:24 PM tbp1...@gmail.com <tbp1...@gmail.com> wrote:
I suggest a name change for save-as-xml.  "xml" is too generic. I presume you mean to save as a standard leo outline.  Maybe save-as-leo-outline, or save-as-dotleo.  Otherwise someone might suppose that the saved file will be some new xml format that isn't openable by Leo.

The docstring is "Save a Leo outline as a .leo file with a new file name." help-for-command will show that docstring, so I don't think anything more is needed.

Edward
Reply all
Reply to author
Forward
0 new messages