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"?
Is it possible to show 2 folders on folder tab?
Moderators: Hacker, petermad, Stefan2, white
Re: Is it possible to show 2 folders on folder tab?
(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.
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.
Re: Is it possible to show 2 folders on folder tab?
There are more than 30 projectsnsp 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.

Every project has 5 folders.
I cannot rename/lock 150 tabs.
Re: Is it possible to show 2 folders on folder tab?
So currently without some tooling making junctions or generating tab files it is a painful task.chuckliu wrote: 2022-01-29, 09:18 UTC There are more than 30 projects
Every project has 5 folders.
I cannot rename/lock 150 tabs.
You should ask for dedicated command to set tab caption with parameters or ability to set tab caption schemes.
Re: Is it possible to show 2 folders on folder tab?
What about that workaround:nsp wrote: 2022-01-29, 11:13 UTCSo currently without some tooling making junctions or generating tab files it is a painful task.chuckliu wrote: 2022-01-29, 09:18 UTC There are more than 30 projects
Every project has 5 folders.
I cannot rename/lock 150 tabs.
You should ask for dedicated command to set tab caption with parameters or ability to set tab caption schemes.
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.
Re: Is it possible to show 2 folders on folder tab?
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.
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.