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

2020-10-18 Thread Edward K. Ream
On Saturday, October 17, 2020 at 3:22:44 PM UTC-5, Edward K. Ream wrote:

> I'll create a new command that only calls c.fileCommands.save_ref().

Per #1716 , 
LeoPyRef.leo now contains @button write-leoPyRef, a specialized rewrite of 
fc.save_ref():

- It can only be run from leoPy.leo, and always writes to LeoPyRef.leo.
- It writes only a given list of nodes,  ['Startup', 'Notes', 'Code'], 
thereby eliminating the need for a sentinel node.

I think this specialization makes sense. In any case, I am happily using it.

Please let's not argue about this. It's my preference. 

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/d37ddb32-f144-4cdc-a168-0fb7baa2d5c9o%40googlegroups.com.


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

2020-10-18 Thread vitalije


On Saturday, October 17, 2020 at 10:22:44 PM UTC+2, Edward K. Ream wrote:
>
>
>
> 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(). 
>
> I use it in my LeoPy.leo and it was never an issue. If all my work is done 
in the private zone, git never showed LeoPyRef.leo changed. 
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/bc68dccb-aa3b-40d4-8d5b-006e13f83817o%40googlegroups.com.