macos 10.13 - leo 6.7.0 with miniconda

95 views
Skip to first unread message

Karsten Wolf

unread,
Oct 15, 2022, 11:18:52 AM10/15/22
to leo-editor
Is there a way to switch off the tabbed gui? I prefer 1 window per doc.

Thomas Passin

unread,
Oct 15, 2022, 11:33:20 AM10/15/22
to leo-editor
You can just open a new Leo session for each outline, either from the command line or using a desktop shortcut.  This works on both Windows and Linux, though I don't have a Mac or a Miniconda install to test it on.

Karsten Wolf

unread,
Oct 15, 2022, 2:33:31 PM10/15/22
to leo-editor
How would that work?

What is in the desktop shortcut?

I launch my outlines with a acript like this:

python3 launchLeo.py  --gui=qt $*

The --gui=qt is ignored by leo.

Thomas Passin

unread,
Oct 15, 2022, 3:16:12 PM10/15/22
to leo-editor
Yes, you do not need to specify --gui=qt. You will get that by default. 

Every time you run your launch script, you should get a new Leo window.  Each one can have just a single outline open if you want.  Since the terminal that launched Leo will be busy servicing its Leo instance, you would need to open another  terminal or terminal window to launch another Leo window.

As for desktop shortcuts, I only know what is used in Linux.  I've not worked with a Mac since long before they switched to a Linux-like OS.  Here is a link about creating MacOS shortcuts:  Create a custom shortcut on Mac.  I imagine that the "action" would be your launch script, or the contents of it.

Karsten Wolf

unread,
Oct 15, 2022, 4:49:42 PM10/15/22
to leo-editor
On Saturday, October 15, 2022 at 9:16:12 PM UTC+2 tbp1... wrote:
Yes, you do not need to specify --gui=qt. You will get that by default. 

I tried --gui=qttabs and --gui=qt. No difference.
 

Every time you run your launch script, you should get a new Leo window.  Each one can have just a single outline open if you want.  Since the terminal that launched Leo will be busy servicing its Leo instance, you would need to open another  terminal or terminal window to launch another Leo window.

How about the decades old metaphor: One application instance, many documents open in that application. Each document in a window. I consider launching the complete app for every document not a solution.


To summarize:

- Version 5.7.2 which I used for years had the desired behaviour; it was not possible to use tabs

- Today, after upgrading to current leo, I am greeted with a tabbar containing my last manually saved session, loading it automatically (I had a script for that), making the tabs totally unusable on a 21" screen because each of the ~30 tab is visible with 2 characters; there is no way to find a doc except linear search switching through the tabss, no window menu with the document titles.

- If it weren't for the python2 elimination which ran the 5.7.2 I would switch back to that.

- running the whole app per document means also I have to switch through all open documents when application switching.

- browsing through the git logs indicates tabs is the sole option. I may have to make my peace with that.



Thomas Passin

unread,
Oct 15, 2022, 6:57:01 PM10/15/22
to leo-editor
You could create an issue in Github requesting an enhancement.  To me, the easiest programming option would probably be to have a menu item in the Windows menu that opens a dialog listing the open outlines.  More desirable would perhaps be to list them all in the Windows menu, but I don't know if that's very feasible with Leo's menu code ... perhaps.  I don't think you are going to get a full MultiDocument Interface with cascading or tiled  documents, etc., but if you routinely have so many outlines open those capabilities probably would not be useful anyway.

Leo already has code to find all the open outlines and switch to one of them, so it's mainly a matter of how feasible (and easy!) it would be to come up with an acceptable interface.

lewis

unread,
Oct 15, 2022, 10:14:27 PM10/15/22
to leo-editor
With a set of tabs open, if you Right-click over the active Tab there is a menu of:
New Outline
Detach
Horizontal tile
Vertical tile


I expected the Horizontal tile, or Vertical tile command to cascade outlines, but it separates one outline at a time.
I'm not sure of the Right-click menu source.

Thomas Passin

unread,
Oct 15, 2022, 11:59:37 PM10/15/22
to leo-editor
It looks like Horizontal Tile, Vertical Tile, and Detach all do the same thing.  And what they do isn't what @kars wants, I think.

Karsten Wolf

unread,
Oct 16, 2022, 3:09:41 AM10/16/22
to leo-editor
I dont have a right-click menu on any tab. I can close or move tabs. That's all.

Edward K. Ream

unread,
Oct 16, 2022, 7:36:53 AM10/16/22
to leo-e...@googlegroups.com
On Sat, Oct 15, 2022 at 10:18 AM 'Karsten Wolf' via leo-editor <leo-e...@googlegroups.com> wrote:
Is there a way to switch off the tabbed gui?

No, and that's not likely to change.

Why does the tabbed format cause you problems, and how did Leo 5.7 handle multiple outlines?

I don't remember how Leo 5.7 worked, but I am able to take a look at the old code.

Edward

Edward K. Ream

unread,
Oct 16, 2022, 7:49:07 AM10/16/22
to leo-editor
On Sunday, October 16, 2022 at 6:36:53 AM UTC-5 Edward K. Ream wrote:

I don't remember how Leo 5.7 worked, but I am able to take a look at the old code.

I should have mentioned that the old code created so-called "SDI" windows. To repeat, I have no recollection of how Leo switched between open documents.

Edward

Viktor Ransmayr

unread,
Oct 16, 2022, 1:20:51 PM10/16/22
to leo-e...@googlegroups.com
Hello Edward,

Is this "single-document interface (SDI) windows" something Microsoft specific?

Viktor

Karsten Wolf

unread,
Oct 16, 2022, 1:26:51 PM10/16/22
to leo-editor

...

I should have mentioned that the old code created so-called "SDI" windows. To repeat, I have no recollection of how Leo switched between open documents.

5.7.2 had normal windows. SDI windows are annoying but iirc were WINDOWS only and deprecated for decades.

I was looking for an easy switch. Apparently that's not there anymore.

Thomas Passin

unread,
Oct 16, 2022, 2:19:09 PM10/16/22
to leo-editor
It's not very clear to me what kind of interface you are talking about.  I don't remember that far back.  Not SDI, apparently.  Not one window per outline.  No tabs.  So there must have been some other way to select which outline to view within the single Leo window.  Presumably that would have been some kind of a list of windows, something like a most recently used file list?  Or a dialog that popped up and listed the outlines?

Actually, Leo's Files/Recent Files menu does list open outlines.  They seem to be listed first. It's just that it doesn't show the open ones any differently from recent but closed ones, so it's hard to tell what's opened.  Maybe its display can be tweaked a little.  All the open outlines could be shown at the top, and the recent but closed entries below, separated by a separator line.  That shouldn't be too hard to arrange (for someone who knows how that menu item works).

Of course, if you are going to be working with 30 open outlines, it's going to be a little cumbersome to deal with no matter how you do it ...

Karsten Wolf

unread,
Oct 17, 2022, 3:07:29 AM10/17/22
to leo-editor
On Sunday, October 16, 2022 at 8:19:09 PM UTC+2 tbp1...@gmail.com wrote:
It's not very clear to me what kind of interface you are talking about.  I don't remember that far back.  Not SDI, apparently.  Not one window per outline.  No tabs.  So there must have been some other way to select which outline to view within the single Leo window.  Presumably that would have been some kind of a list of windows, something like a most recently used file list?  Or a dialog that popped up and listed the outlines?

It was one window per outline. And the navigation lacked too. But the windows menu had some tools like cascade-windows & resize-to-screen

screen 2022-10-17 at 09.02.32.png
 

 

Edward K. Ream

unread,
Oct 17, 2022, 6:58:29 AM10/17/22
to leo-e...@googlegroups.com
On Mon, Oct 17, 2022 at 2:07 AM 'Karsten Wolf' via leo-editor <leo-e...@googlegroups.com> wrote:

It's not very clear to me what kind of interface you are talking about.  I don't remember that far back.  Not SDI, apparently.  Not one window per outline.  No tabs.  So there must have been some other way to select which outline to view within the single Leo window.  Presumably that would have been some kind of a list of windows, something like a most recently used file list?  Or a dialog that popped up and listed the outlines?

It was one window per outline. And the navigation lacked too. But the windows menu had some tools like cascade-windows & resize-to-screen

Thanks for the clarification. After a bit of hacking I was able to get the Leo 5.7 working with Qt5 and Python 3.10. I had to change the code mentioned in Lewis's recent comment about the tiling commands.

Now I can see what you show. Did you use Alt-Tab to switch between windows?

In any case, I have no interest in bringing back the non-tabbed interface. Imo, the obvious workarounds will improve your workflow in the long run.

Edward

Edward K. Ream

unread,
Oct 17, 2022, 6:59:51 AM10/17/22
to leo-e...@googlegroups.com
On Sun, Oct 16, 2022 at 12:20 PM Viktor Ransmayr <viktor....@gmail.com> wrote:
I should have mentioned that the old code created so-called "SDI" windows.

Is this "single-document interface (SDI) windows" something Microsoft specific?

Not sure, and it doesn't matter. The --gui options were the same everywhere.

Edward

Karsten Wolf

unread,
Oct 17, 2022, 9:26:17 AM10/17/22
to leo-editor
On Monday, October 17, 2022 at 12:58:29 PM UTC+2 Edward K. Ream wrote:
On Mon, Oct 17, 2022 at 2:07 AM 'Karsten Wolf' via leo-editor <leo-e...@googlegroups.com> wrote:

It's not very clear to me what kind of interface you are talking about.  I don't remember that far back.  Not SDI, apparently.  Not one window per outline.  No tabs.  So there must have been some other way to select which outline to view within the single Leo window.  Presumably that would have been some kind of a list of windows, something like a most recently used file list?  Or a dialog that popped up and listed the outlines?

It was one window per outline. And the navigation lacked too. But the windows menu had some tools like cascade-windows & resize-to-screen

Thanks for the clarification. After a bit of hacking I was able to get the Leo 5.7 working with Qt5 and Python 3.10. I had to change the code mentioned in Lewis's recent comment about the tiling commands.

Now I can see what you show. Did you use Alt-Tab to switch between windows?

On osx there is a system wide move-focus-to-next-window cmd-<


 
In any case, I have no interest in bringing back the non-tabbed interface. Imo, the obvious workarounds will improve your workflow in the long run.

I will adapt.... I just didn't like getting my current workflow ruffled. Who likes that?
 

Edward K. Ream

unread,
Oct 17, 2022, 9:46:39 AM10/17/22
to leo-e...@googlegroups.com
On Mon, Oct 17, 2022 at 8:26 AM 'Karsten Wolf' via leo-editor <leo-e...@googlegroups.com> wrote:



 
In any case, I have no interest in bringing back the non-tabbed interface. Imo, the obvious workarounds will improve your workflow in the long run.

I will adapt.... I just didn't like getting my current workflow ruffled. Who likes that?

Quite right. Nobody likes change. Glad to hear you are flexible :-)

Edward
Reply all
Reply to author
Forward
0 new messages