Smart tab captions

Features wanted...
Post Reply
John_C
Posts: 336
Joined: 16 May 2018 20:04

Smart tab captions

Post by John_C »

For tab captions (Configuration | Tabs and Panes | Tabs), I use folder names only.

This works fine... unless you have opened two different folders with the same name, for example,

Code: Select all

C:\Program Files\Vim
and
C:\John\Desktop\TipsAndTricks\Vim
This would be fine if XY will include the parent folder or maybe even the full path in such cases, so that the tab line will look as follows:

Code: Select all

[Photos] [Scripts] [Program Files\Vim] [TipsAndTricks\Vim] [Emacs]
To make the full path in tab captions take less horizontal space, this is also possible to add an option to abbreviate it to the first character,

Code: Select all

so that instead of
[Photos] [Scripts] [C:\Program Files\Vim] [C:\John\Desktop\TipsAndTricks\Vim] [Emacs]

you will have
[Photos] [Scripts] [C:\P\Vim] [C:\J\D\T\Vim] [Emacs]

Evolve
Posts: 353
Joined: 27 Feb 2020 09:48

Re: Smart tab captions

Post by Evolve »

The abbreviation part can easily be ambiguous
[C:\P\Vim] << [C:\Program Files\Vim]
[C:\P\Vim] << [C:\Program Files (x86)\Vim]

Though the idea of showing some unique parts of the path only for the tabs with identical names makes a lot of sense. VS Code does exactly that, it keeps some difference and turns everything else into ...

Code: Select all

T:\Echo\Bravo\Juliett\Hotel\Sierra\India.py
T:\Alfa\Bravo\Delta\Juliett\Hotel\Mike\India.py
T:\Echo\Bravo\Delta\Charlie\Hotel\Sierra\India.py
CodeTab.png
CodeTab.png (5.28 KiB) Viewed 440 times
It would look like this in XY
SmartTab.png
SmartTab.png (4.42 KiB) Viewed 440 times
But in order to preserve this ... meaning when there is too many tabs, we would need an infinite tab bar which in and of itself would be a cool feature to have BTW.
02M8KdkxMh.gif
02M8KdkxMh.gif (75.24 KiB) Viewed 440 times

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Smart tab captions

Post by admin »

Full path is in the tooltip.

LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Smart tab captions

Post by LittleBiG »

John_C wrote: 15 Aug 2022 11:10 For tab captions (Configuration | Tabs and Panes | Tabs), I use folder names only.

This works fine... unless you have opened two different folders with the same name, for example,

Code: Select all

C:\Program Files\Vim
and
C:\John\Desktop\TipsAndTricks\Vim
This would be fine if XY will include the parent folder or maybe even the full path in such cases, so that the tab line will look as follows:

Code: Select all

[Photos] [Scripts] [Program Files\Vim] [TipsAndTricks\Vim] [Emacs]
To make the full path in tab captions take less horizontal space, this is also possible to add an option to abbreviate it to the first character,

Code: Select all

so that instead of
[Photos] [Scripts] [C:\Program Files\Vim] [C:\John\Desktop\TipsAndTricks\Vim] [Emacs]

you will have
[Photos] [Scripts] [C:\P\Vim] [C:\J\D\T\Vim] [Emacs]
Actually, you can do it by scripting, I think every building block is available for it. Entering a folder you can check if there is a folder tab with that name already and you can change both as you wish.
Last edited by LittleBiG on 20 Aug 2022 17:32, edited 1 time in total.

Evolve
Posts: 353
Joined: 27 Feb 2020 09:48

Re: Smart tab captions

Post by Evolve »

admin wrote: 20 Aug 2022 10:11 Full path is in the tooltip.
Sure, as in VS Code
tooltip.png
tooltip.png (19.58 KiB) Viewed 363 times
The idea is not to look in the tooltip :P

P.S. Actually even if you did look in the tooltips comparing two similar paths, you would do the same work in your head (looking for some difference). So the actual idea is to automate such a routine work that could break the flow of thoughts and to instead keep your brain occupied by more important things.

Post Reply