Keep only one tab of a directory open at any point in time?

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
JimmyTheBroker
Member
Member
Posts: 179
Joined: 2017-06-07, 05:22 UTC

Keep only one tab of a directory open at any point in time?

Post by *JimmyTheBroker »

Hi guys,

I'm wondering if there is a way for TC to keep only one tab of a particular directory open at any point in time.


Eg:
I have a tab locked "r:\Projects\WMR\"
then go to "r:\Projects\:
and then go back into "r:\Projects\WMR\"
Now I have 2 tabs, one locked of "r:\Projects\WMR\" and another that is not locked.

I have found that I'm constantly building up a pile of Tabs and then have to remove them one by one.

*Also is there a way to quickly remove tabs?

Thanks,
Jimmy
8)
I finally get notifications from emails again!!!
So happy!
User avatar
petermad
Power Member
Power Member
Posts: 9848
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad »

Maybe use the option "Locked, but directory changes allowed" in stead og "lock this tab".
License #524 (1994)
Danish Total Commander Translator
TC 9.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (2004) 64bit, 'Everything' 1.4.1.988 (x64)
TC 3.10 on Android 6.0
Get:
Extended TC Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
tuska
Power Member
Power Member
Posts: 2184
Joined: 2007-05-21, 12:17 UTC

Post by *tuska »

Maybe this could be of interest for you: https://ghisler.ch/board/viewtopic.php?p=333550#333550

See also TC-Help (F1) -> Search for: tab -> double-click on: folder tabs.

Browse internal commands:
- type in: cm_CommandBrowser -> in command line of TC
- type in: tab -> in field "Filter"
User avatar
tuska
Power Member
Power Member
Posts: 2184
Joined: 2007-05-21, 12:17 UTC

Re: Managing Tabs

Post by *tuska »

JimmyTheBroker wrote:... *Also is there a way to quickly remove tabs? ...
Close current tabs on both sides: Button.
User avatar
JimmyTheBroker
Member
Member
Posts: 179
Joined: 2017-06-07, 05:22 UTC

Post by *JimmyTheBroker »

Petermad the awesome wrote: "Locked, but directory changes allowed"
Thats pretty cool!

Translates to "Close tabs on both sides". This results in a pop up if it might close a locked tab, and a bit of a pain.



I discovered I already had the solution but had forgotten it, whoops.
Remove all except locked tabs and active: Ctrl+Shift+W

Cheers,
Jimmy
I finally get notifications from emails again!!!
So happy!
User avatar
tuska
Power Member
Power Member
Posts: 2184
Joined: 2007-05-21, 12:17 UTC

Post by *tuska »

JimmyTheBroker wrote:Translates to "Close tabs on both sides". This results in a pop up if it might close a locked tab, and a bit of a pain.
This should just show another way to delete tabs,
JimmyTheBroker wrote:Remove all except locked tabs and active: Ctrl+Shift+W
... since I assumed that you already know this keyboard shortcut, or right-click on a tab, ...
User avatar
tuska
Power Member
Power Member
Posts: 2184
Joined: 2007-05-21, 12:17 UTC

Re: Managing Tabs

Post by *tuska »

JimmyTheBroker wrote:...*Also is there a way to quickly remove tabs?...
Close All Tabs, one click, both panels including locked ones <-- Click!
User avatar
JimmyTheBroker
Member
Member
Posts: 179
Joined: 2017-06-07, 05:22 UTC

Post by *JimmyTheBroker »

Thanks tuska
I finally get notifications from emails again!!!
So happy!
User avatar
petermad
Power Member
Power Member
Posts: 9848
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad »

May I suggest to change the closeall.tab file to:

Code: Select all

[activetabs]
0_path=.
0_options=1|0|0|0|0|0|0
activetab=0
[inactivetabs]
0_path=.
0_options=1|0|0|0|0|0|0
activetab=0
Then the currently displayed folders will also be the ones that are displayed after the tabs are closed.
License #524 (1994)
Danish Total Commander Translator
TC 9.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (2004) 64bit, 'Everything' 1.4.1.988 (x64)
TC 3.10 on Android 6.0
Get:
Extended TC Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
tuska
Power Member
Power Member
Posts: 2184
Joined: 2007-05-21, 12:17 UTC

Post by *tuska »

2petermad
Thanks, this is a very nice solution! :D
User avatar
JimmyTheBroker
Member
Member
Posts: 179
Joined: 2017-06-07, 05:22 UTC

Post by *JimmyTheBroker »

closeall.tab file?

[activetabs] ?

I honestly tried to find information about these, but haven't had any luck.
(using F1 and everything.)
I finally get notifications from emails again!!!
So happy!
comvox
Junior Member
Junior Member
Posts: 3
Joined: 2017-10-08, 01:52 UTC

Post by *comvox »

JimmyTheBroker wrote:closeall.tab file?

[activetabs] ?

I honestly tried to find information about these, but haven't had any luck.
I wondered too. However...

Look in help under "Folder tabs". In the description of the tabs context menu, it describes how to save tabs to file, and how to load tabs from a file. So files can contain a tab configuration. And users create these files, either by saving tabs to a file, or by writing such a file directly. Either way, one gives the name one wants to the resulting file.

In this case, closeall.tab is a file which the user writes, and it is simply a file which describes tabs. Since it is a user-created file, its name is not going to be found in the help file. And you can use some other name for this file, if you wish.

Also, if you experiment with "save tabs on both sides to file", and then examine the content of the resulting file, one will see that it has
[activetabs] setting off the section with tabs in the active TC panel, and [inactivetabs] setting off the section with tabs in the other TC panel.
User avatar
petermad
Power Member
Power Member
Posts: 9848
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad »

2JimmyTheBroker
[activetabs]
As comvox points out, it is a parameter that is not used in wincmd.ini or wcx_ftp.ini - hence not mentioned in the help.

You don't usually have to know the syntax of .tab files, since they are generated by TC - right click on a tab and choose "Save tabs to file" of "Save tabs on both sides to file" or by using the internal commands SAVETABS, SAVETABSL, SAVETABSR, SAVETABS2, SAVETABS2L, SAVETABS2R - (or by using the Tabs menu item in my Extended Menus).
License #524 (1994)
Danish Total Commander Translator
TC 9.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (2004) 64bit, 'Everything' 1.4.1.988 (x64)
TC 3.10 on Android 6.0
Get:
Extended TC Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply