On Wed, Sep 23, 2020 at 5:08 AM vitalije <[email protected]> wrote:
> If my memory is correct, I've added some years ago code to the free layout > to allow Leo to remember layout of panes. Before that if one opens vr pane > it would change position of splitters and after closing pane body would > become smaller than it used to be before opening vr pane. That was annoying > and there was a feature request for preserving layout. > > When you open some pane in a separate window, it is usually removed from > the nested splitter and I guess this new layout is saved, so when you > reopen Leo the pane is missing from the layout. User needs to use eastern > egg menu to split some area and then to add vr3 pane to the newly formed > part of layout. > > This two step action can be turned into a new command. If you want to > programmatically open vr3 pane inside main Leo window, you need first to > add new area by splitting an existent pane and then to set vr3 as a > provider for the newly created area. > Thanks for this. I don't think a new command is what we want. Instead, we want the free_layout code to restore the layout as it was when Leo last exited (regardless of save). I suspect there are lots of tricky details involved. For example, if Leo opens with two .leo files showing, we want to restore layouts for each .leo file. This seems like the only way to restore floating VR3 layouts for each file. But this is just a guess. Only studying the code and doing experiments will tell us for sure. 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/CAMF8tS1FAWXxFeu190S3dPS9w9HZavxsG6r-FRQwAe-1ruZ-rw%40mail.gmail.com.
