Activating already existing tab

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
t3ster
Junior Member
Junior Member
Posts: 9
Joined: 2023-09-05, 22:54 UTC

Activating already existing tab

Post by *t3ster »

Is there a way (command line switch?) to activate an already existing tab when opening a path through command line?
Or is there a setting in the configuration options?

I looked in the help section in tcmd (Command line parameters) and in the tcmd configuration settings.

I also tried to find it here on the forum but only found the following topics about this:
* Action when trying to change directory in a locked tab
* Why TC does not activate the existing tab?
* activate an existing tab instead of creating a new one
* Command Line: switch to existing tab if path matches
* Avoid Opening the Same Folder in Different Tabs
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3299
Joined: 2003-05-06, 11:46 UTC

Re: Activating already existing tab

Post by *Sir_SiLvA »

Open file totalcmd.inc in your TC main folder and look for the cmds under "[________________Tabs________________]"
to learn how to activate existing tabs.

Code: Select all

cm_OpenNewTab=3001;Open new tab
cm_OpenNewTabBg=3002;Open new tab in background
cm_OpenNewTabOther=3027;Open new tab (other window)
cm_OpenNewTabBgOther=3028;Open new tab in background (other window)
cm_OpenDirInNewTab=3003;Open dir under cursor in tab
cm_OpenDirInNewTabOther=3004;Open dir under cursor (other window)
cm_SwitchToNextTab=3005;Switch to next Tab (as Ctrl+Tab)
cm_SwitchToPreviousTab=3006;Switch to previous Tab (Ctrl+Shift+Tab)
cm_MoveTabLeft=3015;Move current tab to the left
cm_MoveTabRight=3016;Move current tab to the right
cm_CloseCurrentTab=3007;Close tab
cm_CloseAllTabs=3008;Close all
cm_CloseDuplicateTabs=3017;Close duplicate tabs
cm_DirTabsShowMenu=3009;Show tab menu
cm_RenameTab=3024;Rename current tab
cm_ToggleLockCurrentTab=3010;Turn on/off tab locking
cm_ToggleLockDcaCurrentTab=3012;Same but with dir changes allowed
cm_SetTabOptionNormal=3029;Turn off tab locking
cm_SetTabOptionPathLocked=3030;Turn on tab locking
cm_SetTabOptionPathResets=3031;Turn on tab locking with dir changes allowed
cm_SetAllTabsOptionNormal=3032;Turn off tab locking for all tabs
cm_SetAllTabsOptionPathLocked=3033;Turn on tab locking for all tabs
cm_SetAllTabsOptionPathResets=3034;Turn on tab locking with dir changes allowed for all tabs
cm_ExchangeWithTabs=535;Swap all Tabs
cm_GoToLockedDir=3011;Go to the base dir of locked tab 
cm_SrcTabsList=5515;Source: Show list of all open tabs
cm_TrgTabsList=5516;Target: Show list of all open tabs
cm_LeftTabsList=5517;Left: Show list of all open tabs
cm_RightTabsList=5518;Right: Show list of all open tabs
cm_SrcActivateTab1=5001;Activate first tab
cm_SrcActivateTab2=5002;Activate second tab
cm_SrcActivateTab3=5003;(Source window)
cm_SrcActivateTab4=5004;etc.
cm_SrcActivateTab5=5005;
cm_SrcActivateTab6=5006;
cm_SrcActivateTab7=5007;
cm_SrcActivateTab8=5008;
cm_SrcActivateTab9=5009;
cm_SrcActivateTab10=5010;(up to 99 items)
cm_TrgActivateTab1=5101;Activate first tab
cm_TrgActivateTab2=5102;Activate second tab
cm_TrgActivateTab3=5103;(Target window)
cm_TrgActivateTab4=5104;etc.
cm_TrgActivateTab5=5105;
cm_TrgActivateTab6=5106;
cm_TrgActivateTab7=5107;
cm_TrgActivateTab8=5108;
cm_TrgActivateTab9=5109;
cm_TrgActivateTab10=5110;
cm_LeftActivateTab1=5201;Activate first tab
cm_LeftActivateTab2=5202;Activate second tab
cm_LeftActivateTab3=5203;(Left window)
cm_LeftActivateTab4=5204;etc.
cm_LeftActivateTab5=5205;
cm_LeftActivateTab6=5206;
cm_LeftActivateTab7=5207;
cm_LeftActivateTab8=5208;
cm_LeftActivateTab9=5209;
cm_LeftActivateTab10=5210;
cm_RightActivateTab1=5301;Activate first tab
cm_RightActivateTab2=5302;Activate second tab
cm_RightActivateTab3=5303;(Right window)
cm_RightActivateTab4=5304;etc.
cm_RightActivateTab5=5305;
cm_RightActivateTab6=5306;
cm_RightActivateTab7=5307;
cm_RightActivateTab8=5308;
cm_RightActivateTab9=5309;
cm_RightActivateTab10=5310;
you might need those too:

Code: Select all

cm_FocusLeft=4001;Focus on left file list
cm_FocusRight=4002;Focus on right file list
cm_FocusSrc=4005;Focus on source file list
cm_FocusTrg=4006;Focus on target file list
Hoecker sie sind raus!
t3ster
Junior Member
Junior Member
Posts: 9
Joined: 2023-09-05, 22:54 UTC

Re: Activating already existing tab

Post by *t3ster »

Thank you!
Post Reply