Page 1 of 1
Smart tab captions
Posted: 15 Aug 2022 11:10
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]
Re: Smart tab captions
Posted: 16 Aug 2022 09:24
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 (5.28 KiB) Viewed 1107 times
It would look like this in XY

- SmartTab.png (4.42 KiB) Viewed 1107 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 (75.24 KiB) Viewed 1107 times
Re: Smart tab captions
Posted: 20 Aug 2022 10:11
by admin
Full path is in the tooltip.
Re: Smart tab captions
Posted: 20 Aug 2022 15:51
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.
Re: Smart tab captions
Posted: 20 Aug 2022 17:27
by Evolve
admin wrote: ↑20 Aug 2022 10:11
Full path is in the tooltip.
Sure, as in VS Code

- tooltip.png (19.58 KiB) Viewed 1030 times
The idea is not to look in the tooltip
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.