setting vertical layout by default

27 views
Skip to first unread message

brian

unread,
Sep 3, 2025, 9:42:05 PM (4 days ago) Sep 3
to leo-editor
How do set vertical layout by default?  

I'm trying to get the default behavior to be the state when I click: window -> Vertical-Window_Layout.  

It seems the layout changed when upgraded to version 6.8.6.1.   

In myleosettings.leo, I tried in tried @string qt-layout-name but there is not a solely vertical option.  I tried a bunch of other options like adding @script in a Startup node that runs the command c.executeMinibufferCommand('vertical-window-layout').  I also played with plugins but I could get to work.  

 

Thomas Passin

unread,
Sep 3, 2025, 9:51:35 PM (4 days ago) Sep 3
to leo-editor
That is "vertical-thirds". Put a node into your myLeoSettings.leo outline with this headline:

@string qt-layout-name = vertical-thirds

This will become the default layout. The actual name of this layout as it would be used in a script is " layout-vertical-thirds". That's a layout name, not the name of a script that arranges the panes.

brian

unread,
Sep 3, 2025, 10:53:44 PM (4 days ago) Sep 3
to leo-editor
That was it.  Thank you.  When I ran "help-for-layouts," I saw vertical-thirds with VR and VR3 panels on right and didn't think this is what wanted.  The name "thirds" threw me off.   

Thomas Passin

unread,
Sep 3, 2025, 11:47:39 PM (4 days ago) Sep 3
to leo-editor
I see. At startup, the VR/VR3 panes aren't populated so you only see the three. If you open VR/VR3, they will open in those pane positions.

The layout names were created when this layout system was being finalized a year or two ago. Naming the layouts turned out to be hard.

Robert-Felix

unread,
Sep 6, 2025, 3:38:07 PM (22 hours ago) Sep 6
to leo-e...@googlegroups.com
Thanks Thomas, I also prefer the vertical layout 😁 I didn't know how to set it up

--
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+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/leo-editor/04c011fe-ed71-4557-ad5c-7b7516baca67n%40googlegroups.com.

Thomas Passin

unread,
Sep 6, 2025, 4:00:15 PM (22 hours ago) Sep 6
to leo-editor
All the layout commands can be listed by getting into the minibuffer, typing "layout-", and hitting <TAB>.  They all start with "layout-".  In your settings, the default is specified by @string qt-layout-name and you can use any of those listed names with or without the "layout-" prefix. If the prefix is missing, the code adds it before using the value (well, "layout-restore-to-setting" and "layout-swap-log-pane" wouldn't make any sense, don't use them).
Reply all
Reply to author
Forward
0 new messages