On Fri, Sep 11, 2020 at 1:08 PM Thomas Passin <[email protected]> wrote:

opening a new file, setting the layout, and *not* saving the new file
>> before closing Leo should set a new default for new files.
>>
>
> No, it does not do that.  It does use that new layout for the first file
> that it opens as a parameter on the command line.  But once open, a new
> outline from File/New does not use this outline but instead uses the
> default outline.
>

Thanks for your patience, Thomas. At last I understand your complaint. A
straightforward fix should be possible.

Leo stores layouts in the cache, with path names as keys. Rather than using
an empty ("") key for new files, which fails *later *as you explain above,
new files should default, imo, to the layout of the first loaded .leo
file.  By default, this will be workbook.leo when a user opens Leo without
any file arguments.

I'll work on this next. With luck, the new code should be no more complex
than the old. It might even be simpler.

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0kKc0yP3tQkOtFw3_A8BNnyYW1Hs-A_S4ZEcnOEb1QEw%40mail.gmail.com.

Reply via email to