Leo's legacy layout is now the default in version 6.2

130 views
Skip to first unread message

Viktor Ransmayr

unread,
Mar 28, 2020, 3:58:25 AM3/28/20
to leo-editor
Hello Edward,

I did a quick search in the documentation as well as in the FAQ to find information, how to change that back to the way panes where organized in 6.1. - No quick success ...

Can you tell me, where I should look?

With kind regards,

Viktor

Edward K. Ream

unread,
Mar 28, 2020, 4:53:43 AM3/28/20
to leo-editor
On Sat, Mar 28, 2020 at 2:58 AM Viktor Ransmayr <viktor....@gmail.com> wrote:

I did a quick search in the documentation as well as in the FAQ to find information, how to change that back to the way panes where organized in 6.1. - No quick success ...

Can you tell me, where I should look?

Good question.  leo -h will show you the command-line options. The relevant ones are:

--init-docks          put docks in default positions
--global-docks        use global docks
--use-docks           use qt dock widgets

I recommend using --use-docks in your scripts that launch Leo.

Edward

Viktor Ransmayr

unread,
Mar 28, 2020, 7:12:01 AM3/28/20
to leo-e...@googlegroups.com
Hello Edward,

Thanks, that helped. - However the panes are now organized in a way, that does not feel right (to me).

That is, the 'Render' pane is to the left of the 'Body' pane - and - directly below the 'Outline' pane.

What do I have to do to organize the panes as follows: 'Outline [1/1]', 'Tabs [1/2]', 'Body [2/1]' & 'Render [2/2]'?

With kind regards,

Viktor

Edward K. Ream

unread,
Mar 28, 2020, 7:20:23 AM3/28/20
to leo-editor
On Sat, Mar 28, 2020 at 6:12 AM Viktor Ransmayr wrote:

> Thanks, that helped. - However the panes are now organized in a way, that does not feel right (to me).

> That is, the 'Render' pane is to the left of the 'Body' pane - and - directly below the 'Outline' pane.

The default for @string initial-split-orientation is now horizontal. Change it to vertical.

Edward

Viktor Ransmayr

unread,
Mar 28, 2020, 9:07:45 AM3/28/20
to leo-e...@googlegroups.com
Hello Edward,

I did try it on Windows - as well as - on Fedora Linux - and - it does not work as expected :-(

That is the 'Body' pane is at the bottom line of the  4 squares - but - as I stated in my previous reply, it stays at the *right* bottom square - and - I'd like to have it at the *left* bottom square ...

With kind regards,

Viktor

Matt Wilkie

unread,
Mar 28, 2020, 5:08:27 PM3/28/20
to leo-editor
Viktor,

Thomas Passin contributed his recipe to the FAQ which mightbe helpful:

-matt

Matt Wilkie

unread,
Mar 28, 2020, 5:08:54 PM3/28/20
to leo-editor

Viktor Ransmayr

unread,
Mar 28, 2020, 6:06:11 PM3/28/20
to leo-e...@googlegroups.com
Hello Matt,

Thanks a lot. - I'll try the recipe tomorrow ...

With kind regards,

Viktor

Viktor Ransmayr

unread,
Mar 29, 2020, 5:29:36 AM3/29/20
to leo-e...@googlegroups.com
Hello Edward, Matt & Thomas,

This morning I tried in every possible way to achieve the pane setting I'd like to have, i.e.

* 'Outline [1/1]'  plus 'Tabs [1/2]' to the right
* 'Body [2/1]' below Outline &  'Render [2/2]' to the right of Body & below Tabs ...

As recommended by Edward I start Leo with --use-docks - and - as suggested by Matt & documented by Thomas in the FAQs, I experimented with

* @string central-dock-widget = body or outline - as well as -
* @string initial-split-orientation = horizontal or vertical
* and deleted ~/.leo/DB

Unfortunately without success.

Has anyone succeeded with this recipe & 'Leo 6.2 final'?

With kind regards,

Viktor


Edward K. Ream

unread,
Mar 29, 2020, 6:16:53 AM3/29/20
to leo-editor
On Sun, Mar 29, 2020 at 4:29 AM Viktor Ransmayr <viktor....@gmail.com> wrote:

> This morning I tried in every possible way to achieve the pane setting I'd like to have, i.e.

My apologies for the troubles you are having. Can anyone give specific advice.

In general, it's a good idea to remove the contents of ~/.leo/db when modifying layouts. You can also try to using the --init-docks command-line option. Another thing to consider is making something other than the outline the so-called central widget.  You might try @string central-dock-widget = body.

Edward

Thomas Passin

unread,
Mar 29, 2020, 9:09:45 AM3/29/20
to leo-e...@googlegroups.com
I more or less can get you there adding a setting

@string central-dock-widget = outline

I have attached a screen shot.

BTW, you can add this setting just to one outline, so you can experiment with changing the setting(s) by closing the outline and reloading it, rather than needing to restart Leo each time.

The first time I tried this, the rendering pane seemed to be stuck across the whole bottom and was not movable.  I deleted the setting and reloaded, then restored the setting and reloaded again, and this time the rendering pane was able to share the bottom row with the tabs pane.  I'm moderately sure that if I had deleted Leo's db directory, I wouldn't have had the initial problem.

The detail that the left edges of the tabs and body panes line up is not automatic.  The tabs and rendering panes share the bottom row, and you can move the divider between them.  The body and outline share the top row, and you can independently move their divider.

When you move one of the panes, for example the tabs to the bottom right, it can be very hard to find the spot to drop it.  Sometimes the drop target can be tiny.  Keep moving around with the mouse and look for any tiny area that changes color, and you should eventually find it.

I hope this gives you what you are after.
body-tabs-right.png

Edward K. Ream

unread,
Mar 29, 2020, 9:58:09 AM3/29/20
to leo-editor


On Sun, Mar 29, 2020 at 8:09 AM Thomas Passin <tbp1...@gmail.com> wrote:
I kind of get you there adding a setting

@string central-dock-widget = outline

I have attached a screen shot.

Thanks for your help.

Edward

Viktor Ransmayr

unread,
Mar 29, 2020, 10:42:33 AM3/29/20
to leo-e...@googlegroups.com
Hello Thomas,

Am So., 29. März 2020 um 15:09 Uhr schrieb Thomas Passin <tbp1...@gmail.com>:
I kind of get you there adding a setting

@string central-dock-widget = outline

I have attached a screen shot.

BTW, you can add this setting just to one outline, so you can experiment with changing the setting(s) by closing the outline and reloading it, rather than needing to restart Leo each time.

Thanks a lot for your help - and - the suggestion to demonstrate it within the simplest possible outline.

However, as you can see from the two screenshots attached Leo 6.1/ screenshot C - and - Leo 6.2/ screenshot D behave differently.

What I would like to achieve is to get the default pane setup from 6.1 applied to 6.2!

So far none of the suggestions work :-(

With kind regards,

Viktor

SS-2020-03-29-C.png
SS-2020-03-29-D.png

Thomas Passin

unread,
Mar 29, 2020, 3:45:40 PM3/29/20
to leo-editor
On Sunday, March 29, 2020 at 10:42:33 AM UTC-4, Viktor Ransmayr wrote:
Hello Thomas,

Am So., 29. März 2020 um 15:09 Uhr schrieb Thomas Passin <tbp1...@gmail.com>:
I kind of get you there adding a setting

@string central-dock-widget = outline

I have attached a screen shot.


However, as you can see from the two screenshots attached Leo 6.1/ screenshot C - and - Leo 6.2/ screenshot D behave differently.

What I would like to achieve is to get the default pane setup from 6.1 applied to 6.2!

So far none of the suggestions work :-(
 
I have good news and bad news.  First, the good news  With the same @string as above,  I was able to drag the body and tabs panes to the new positions that you want.The attached image Leo version is with 6.3-devel, but I got the same results with 6.2-final.  This is on Windows, BTW.

The bad news is that this arrangement seems to be unstable and hard to get in the first place.  I could only get it after repeated dragging and closing/reopening the outline.  Even then, if I restarted Leo, sometimes it lost the arrangement and I had to reopen the outline several times and drag before I could restore the arrangement I wanted.  But eventually, it seemed to become more stable, and persist through a few restarts.

When I got this to work, it was usually as follows:

1. Rendering pane invisible.
2. Outline pane in upper left.
3. Tabs pane dragged to upper right (i.e., docked in right hand side of upper row).
4. Body pane across the entire bottom row.

Then if the body pane was draggable - and sometimes it was not - then the render pane would  either open up in the correct place or it could be dragged there.

I have to emphasize that I had to drag, experiment, reopen and restart a lot.  Simply deleting the .leo/db folder was not enough.

Edward will say that the positions are saved and restored by the QT libraries, and that Leo has no control over it.  But there other QT applications that have complicated pane arrangements and they don't seem to have this problem.  There must be some factor that we don't know about.  Especially, the draggability of a pane shouldn't be changing from session to session.

Viktor Ransmayr

unread,
Mar 29, 2020, 4:32:35 PM3/29/20
to leo-e...@googlegroups.com
Hello Thomas,


On Sun, Mar 29, 2020, 21:45 Thomas Passin <tbp1...@gmail.com> wrote:
On Sunday, March 29, 2020 at 10:42:33 AM UTC-4, Viktor Ransmayr wrote:
Hello Thomas,

Am So., 29. März 2020 um 15:09 Uhr schrieb Thomas Passin <tbp1...@gmail.com>:
I kind of get you there adding a setting

@string central-dock-widget = outline

I have attached a screen shot.


However, as you can see from the two screenshots attached Leo 6.1/ screenshot C - and - Leo 6.2/ screenshot D behave differently.

What I would like to achieve is to get the default pane setup from 6.1 applied to 6.2!

So far none of the suggestions work :-(
 
I have good news and bad news.  First, the good news  With the same @string as above,  I was able to drag the body and tabs panes to the new positions that you want.The attached image Leo version is with 6.3-devel, but I got the same results with 6.2-final.  This is on Windows, BTW.

Thanks for this update. - Lately I'm doing most of my work using Fedora 30.

I'll reserve some time to experiment further tomorrow night & will report back ...

With kind regards,

Viktor

Chris George

unread,
Mar 29, 2020, 4:55:15 PM3/29/20
to leo-editor
Here is my recipe for the dock layout that I like. It lets me use a two pane, three pane or even four pane layout that is consistent.

I use KDE NEON which is based on Ubuntu 18.04. I always use the git version and run devel.

1. cd ~/.leo
2. rm -rf db
3. rm leo.session
4. cd ~/leo-editor
5. ./launchLeo.py --global-docks

In myLeoSettings.leo:

@bool minibuffer-find-mode = True
@bool dockable-log-tabs = True
@string central-dock-widget = body
@bool use-vr-dock = True
@string theme-name = ZephyrDarkThemeLocal

Attached is a screenshot of workbook.leo after arranging how I like, saving the file, and restarting using the recipe above.

Screenshot_20200329_135215.png


I prefer the body pane as the anchor for my layouts rather than the outline.


Feel free to ask questions but after much mucking about, this is what works for me.


HTH,


Chris




Viktor Ransmayr

unread,
Mar 30, 2020, 3:11:40 PM3/30/20
to leo-editor
Hello Chris,


Am Sonntag, 29. März 2020 22:55:15 UTC+2 schrieb Chris George:
Here is my recipe for the dock layout that I like. It lets me use a two pane, three pane or even four pane layout that is consistent.

I use KDE NEON which is based on Ubuntu 18.04. I always use the git version and run devel.

1. cd ~/.leo
2. rm -rf db
3. rm leo.session
4. cd ~/leo-editor
5. ./launchLeo.py --global-docks

In myLeoSettings.leo:

@bool minibuffer-find-mode = True
@bool dockable-log-tabs = True
@string central-dock-widget = body
@bool use-vr-dock = True
@string theme-name = ZephyrDarkThemeLocal

Attached is a screenshot of workbook.leo after arranging how I like, saving the file, and restarting using the recipe above.

Thanks a lot for sharing your recipe & settings.

There are a lot of different options to try our in order to re-create the default layout of 6.1 in a 6.2 instance of Leo ...

So far I'm still holding back to upgrade my main Leo instance to 6.2!

With kind regards,

Viktor

Viktor Ransmayr

unread,
Apr 2, 2020, 3:01:53 PM4/2/20
to leo-editor
Hello Leo Community,
Here's a status update on my progress related to Leo's layout settings in version 6.2.

I've executed a series of tests using the input & recipes you provide. - Here are my notes from these tests:

###

Continue experimenting with the different modes of using docks in Leo.

* Re-read the various answers & feedback I received from the community to my message related to the changed pane layout in Leo 6.2. - See

    * https://groups.google.com/d/msg/leo-editor/azhXxFudEXM/YePPj3riAQAJ
    * Edward recommends to use the '--use-docks' command line option. - See
    * https://groups.google.com/d/msg/leo-editor/azhXxFudEXM/8l71X1N7BgAJ
    * Edward recommends to use '@string initial-split-orientation = vertical'. - See
    * https://groups.google.com/d/msg/leo-editor/azhXxFudEXM/GBiITFSDBgAJ
    * Matt recommends to check out the FAQ on "How can I arrange Qt docks?". - See
    * https://groups.google.com/d/msg/leo-editor/azhXxFudEXM/lK6KaZ0NAgAJ
    * plus https://leoeditor.com/FAQ.html#how-can-i-arrange-qt-docks
    * Thomas commented on the FAQ - and - made recommendations concerning simplifying testing. - See
    * https://groups.google.com/d/msg/leo-editor/azhXxFudEXM/BxLHlAxCAgAJ
    * Thomas provided further suggestions concerning my continuing issues. - See
    * https://groups.google.com/d/msg/leo-editor/azhXxFudEXM/6g15ZqdXAgAJ
    * Chris finally shared the recipe for his preferred layout. - See
    * https://groups.google.com/d/msg/leo-editor/azhXxFudEXM/QzWyXHNbAgAJ

* Decide on the exact configuration for the secong round of testing.

    * Start Leo with the '--use-docks' command line option.
    * Outline: 1/1 - Render: 1/2 - Tabs: 2/1 - Body: 2/2
    * Add '@string initial-split-orientation = vertical' to 'myLeoSettings.leo'.
    * Outline: 1/1 - Tab: 1/2 - Render: 2/1 - Body: 2/2 <- before restart for 'myLeoSettings.leo' !
    * Restart Leo w/ deleting ~/.leo/DB, etc.
    * Outline: 1/1 - Tab: 1/2 - Render: 2/1 - Body: 2/2 <- after restart for 'workbook.leo', etc. !
    * Try to move the panes as described in the FAQ. - Not OK.
    * Add '@bool use-vr-dock = True' to 'myLeoSettings.leo'.
    * Restart Leo w/o deleting ~/.leo/DB, etc.
    * The Render pane still can **not** be moved ...
    * Restart Leo w/ deleting ~/.leo/DB, etc.
    * The Render pane still can **not** be moved ...

* Decide on the exact configuration for the third round of testing.

    * Continue starting Leo with the '--use-docks' command line option.
    * Outline: 1/1 - Tab: 1/2 - Render: 2/1 - Body: 2/2
    * Keep '@string initial-split-orientation = vertical' in 'myLeoSettings.leo'.
    * Keep '@bool use-vr-dock = True' in 'myLeoSettings.leo'.
    * Add '@string central-dock-widget = body' to 'myLeoSettings.leo'.
    * Restart Leo with deleting ~/.leo/DB, etc.
    * Outline: 1/1 - Body: 1/2 - Tabs: 1/3 - Render: ?2/1? -> i.e. directly below Tabs
    * Render tab **can** be moved.

Summary:

   * This looks like a usable setting for my purposes at this point in time, especially since I can 'un-dock' the render pane - and - move it to a different screen!

###

Although I still failed to re-create the exact layout as the default one in Leo 6.1, I am satisfied enough to move my working instances to Leo 6.2.1 now.

Thanks again for all of your support.

With kind regards,

Viktor

Reply all
Reply to author
Forward
0 new messages