Re: Unifying leoPy.leo and leoPlugins.leo is a big win

2020-10-17 Thread Edward K. Ream
On Sat, Oct 17, 2020 at 7:30 AM vitalije  wrote:

I think you should really try using public/private outline scheme.
>

Thanks for the reminder. I'm not sure I always want ctrl-s to save to both
outlines. Instead, I'll create a new command that only calls c.fileCommands.
save_ref().

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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1a7TxOUGH%2BOng%2BvBUPG05A%3DNpT_AOR6Shz5ZNwG%2BnBmw%40mail.gmail.com.


Re: Unifying leoPy.leo and leoPlugins.leo is a big win

2020-10-17 Thread vitalije

>
> Similarly, the open-leo-py-ref-leo command makes it significantly easier 
> to keep LeoPyRef.leo in sync with my personal leoPy.leo files. It may sound 
> like a small matter, but it isn't. 


I think you should really try using public/private outline scheme. Just to 
remind you of this rather hidden Leo feature.

If an outline has a top level node with the headline 
`---begin-private-area---`, then this node is separating the public part of 
the outline (before this node) and the private part of the outline (after 
this node). The first line of this node should have a path to the public 
(shared) Leo document.

Now when you execute c.fileCommands.save_ref() command, the public part is 
saved in the shared Leo document. In my private Leo documents I always have 
a node with headline `@button n-save @key=Ctrl-s` and the body line always 
contains at least these two lines:

c.save()
c.fileCommands.save_ref()

That way my public or reference Leo files never get out of sync.

When I pull changes from the others, I have to remember to execute 
`read-ref-file` which updates public part of the outline from the reference 
file.

Vitalije

>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/db3be5ac-30a6-47bf-8d61-fda94cc272b6o%40googlegroups.com.