Is it possible to show 2 folders on folder tab?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
chuckliu
Junior Member
Junior Member
Posts: 2
Joined: 2022-01-29, 06:19 UTC

Is it possible to show 2 folders on folder tab?

Post by *chuckliu »

I have many projects and they have the same folder layout like:
prj1/src, prj1/test, prj2/src, prj2/test
Now on TC, I have a lot of "src", "test" tabs, it's really time consuming to locate the right tab.
So is it possible to include parent folder in the tab name like "prj1/src", "prj2/src"?
User avatar
nsp
Power Member
Power Member
Posts: 1949
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Is it possible to show 2 folders on folder tab?

Post by *nsp »

(IIRC) There is no field or function to set tab name template globally.

If you want, you can rename the tab manually as you want right click on a tab and chose rename/lock this tab. You can then save all the tab to a tab file using SAVETABS <filename> and reload using LOADTABS <filename>. You will see attribute x_caption with tab name.

Another workaround, is to create junction pointing to src with dedicated name prjx-src.
chuckliu
Junior Member
Junior Member
Posts: 2
Joined: 2022-01-29, 06:19 UTC

Re: Is it possible to show 2 folders on folder tab?

Post by *chuckliu »

nsp wrote: 2022-01-29, 07:38 UTC (IIRC) There is no field or function to set tab name template globally.

If you want, you can rename the tab manually as you want right click on a tab and chose rename/lock this tab. You can then save all the tab to a tab file using SAVETABS <filename> and reload using LOADTABS <filename>. You will see attribute x_caption with tab name.

Another workaround, is to create junction pointing to src with dedicated name prjx-src.
There are more than 30 projects :D
Every project has 5 folders.
I cannot rename/lock 150 tabs.
User avatar
nsp
Power Member
Power Member
Posts: 1949
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Is it possible to show 2 folders on folder tab?

Post by *nsp »

chuckliu wrote: 2022-01-29, 09:18 UTC There are more than 30 projects :D
Every project has 5 folders.
I cannot rename/lock 150 tabs.
So currently without some tooling making junctions or generating tab files it is a painful task.

You should ask for dedicated command to set tab caption with parameters or ability to set tab caption schemes.
User avatar
klsgfx
Junior Member
Junior Member
Posts: 74
Joined: 2003-11-21, 14:40 UTC
Location: Berlin

Re: Is it possible to show 2 folders on folder tab?

Post by *klsgfx »

nsp wrote: 2022-01-29, 11:13 UTC
chuckliu wrote: 2022-01-29, 09:18 UTC There are more than 30 projects :D
Every project has 5 folders.
I cannot rename/lock 150 tabs.
So currently without some tooling making junctions or generating tab files it is a painful task.

You should ask for dedicated command to set tab caption with parameters or ability to set tab caption schemes.
What about that workaround:
Save the tabs to a file with SAVETABS (as proposed by nsp) and then edit that file to insert 0_captition=, 1_caption=, etc... and change the name there from eg. tmp to c_win_tmp or so. Shouldn't be too much work with a good text editor and perhaps some RegEx or search and replace.
Then load this file via LOADTABS.
NotNull
Senior Member
Senior Member
Posts: 298
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: Is it possible to show 2 folders on folder tab?

Post by *NotNull »

And another workaround: use colour-coding for tabs, so that all prj1 related folders are green, prj2 folders are blue, etc:

Example for prj1
- Menu:Show > Custom View modes > Configure View modes
- Add "prj 1 folders"
- Tab Color = green
- In that same configuration dialog, select Auto Switch Mode from the left pane
- Add: Must match; Directory = *\prj1\* (or c:\folder\prj1\* or whatever is your situation)
- Set this mode = "prj 1 folders"
- OK button


Now, when you enter the prj1 folder, the tab will become green. When you enter prj1\test, the tab will also be green.
So you can now simply look for a green tab with the text "test" to find c:\folder\prj1\test

There are about 15 different Tab colours to choose from in the GUI; I suspect you can create more when you edit the ini-file manually.
Post Reply