specific layout

69 views
Skip to first unread message

Martin Towner

unread,
Jun 19, 2019, 8:07:02 AM6/19/19
to leo-editor
hello all, could someone help me? I've just moved to 6.0, from 5, and I'm trying to get a specific window layout, and I can't figure out how to do it! I want the right half of the screen to be body, top left quarter to be outline, and bottom left quarter to be tabs/find/log...

In v5 I used to use toggle-split-direction, and all done, but not an option in v6. After some googling, I've tried turning windows on/off, dragging them around in various combinations, but it feels like one of those wooden puzzles and I can't make it do what I want! I've got the outline in top-left, but either the tabs window is full width at the bottom, with body as top-right quarter, or outline is full width across the top half! Is there a way to set window positions using the command line maybe? I know I can start with --no-dock, but i wanted to stay with the newer windowing.
Thanks!
Martin

Chris George

unread,
Jun 19, 2019, 8:53:07 AM6/19/19
to leo-editor
Hi Martin,

There is a central dock widget. By default it is the Outline widget. The central widget has limitations and forms the anchor for all other dock widgets to be placed in relationship to it.

To get the layout you want you need to change the central widget to the body widget. Add the following to your settings tree in your myLeoSettings.leo and restart Leo.

@string central-dock-widget = body

HTH,

Chris

Martin Towner

unread,
Jun 19, 2019, 10:59:48 PM6/19/19
to leo-editor
That's great, thanks Chris, it worked perfectly!

gar

unread,
Jun 20, 2019, 1:04:13 PM6/20/19
to leo-editor

BrokenLayout.png

I applied your recipe and got some strange layout where LOG pane & friends became totally unreachable and invisible.
How to restore them back? And how this became possible at all?



среда, 19 июня 2019 г., 15:53:07 UTC+3 пользователь Chris George написал:

Chris George

unread,
Jun 20, 2019, 1:35:17 PM6/20/19
to leo-e...@googlegroups.com
The Tabs dock widget is nested with the Body dock widget.

Set the @string setting to outline instead of body and restart. Then unnest the Tabs dock widget by selecting it and dragging it to its own position (not nested). Then change the central widget back to body and restart Leo.

The central widget cannot host other widgets in a nested arrangement. Apparently having a dock widget already nested when you make the switch causes inconsistencies.

The switch to dock widgets is less than two weeks old and we're still ironing out the details.

Chris

Then change the

--
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 post to this group, send email to leo-e...@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/34720582-01d9-4995-a9b9-8cc1ade0e4aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Edward K. Ream

unread,
Jun 21, 2019, 8:01:52 AM6/21/19
to leo-editor
On Thu, Jun 20, 2019 at 12:35 PM Chris George <techn...@gmail.com> wrote:
The Tabs dock widget is nested with the Body dock widget.

Set the @string setting to outline instead of body and restart.

Whenever you change a dock-related setting you should restart Leo with --init-docks.  That tells Leo not to use previous dock locations.

If you have several outlines for which dock layouts exist, it probably better to clear Leo's caches in ~/.leo/db.

Edward
Reply all
Reply to author
Forward
0 new messages