On Tue, Sep 29, 2020 at 10:23 PM [email protected] <[email protected]>
wrote:
When a pane is opened as a toplevel window by using the Open Window context
> menu, that pane is not a part of the ordinary nested splitter layout, so
> far as I can tell. How can this pane be accessed?
>
When I execute one of these commands, the pane becomes a floating window.
However, it does not become a floating window when Leo is reloaded.
The relevant code is dense and not easily understood or summarized. I'm not
sure how much more effort I can justify in this area. I'll spend some more
time on it, but probably not a lot more.
Let me summarize what I think I know at present:
1. Terry's code has no machinery to represent floating windows, as is shown
in the two methods I discussed yesterday, namely ns.get_layout and
ns.get_saveabke layout. It might be relatively straightforward to add a
'floating' key to the python dicts returned from those methods.
2. Aside from floating windows, Terry's code already does a good job of
automatically saving/restoring layouts. In addition, and perhaps
confusingly, Terry's code *also* allows us to save/restore named layouts.
Imo, all this works fairly well.
3. On startup, flc.loadLayouts creates free-layout-load-{layout_name}
commands that will load the named layouts. So (modulo floating panes) there
*already* is an easy way to load any layout you want, and you can bind any
key to the commands using @button or @command nodes, and possibly even in
myLeoSettings.leo.
*Summary*
Imo, Terry's code is pretty good as it is. It automatically saves/restores
layouts in Leo's caches. You can see the state of the cache using
--trace=cache. You can change the relevant parts of the cache by saving or
deleting named layouts.
At present, Terry's code does not remember whether panes are floated. It
might be possible to add that capability, but imo that is not a high
priority.
The question of whether VR3 should be global or local turns out to be way
tricky. I have refactored flc.loadLayouts in order to get a grip on this
question, but everything is still murky. I would like to do an ENB on this
subject. Maybe today or tomorrow.
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/CAMF8tS2bBPeZcRD8Cj-wLsr8c%2BNC9L5OW5htsd-A8dm2rT2Vog%40mail.gmail.com.