Tabs get overwritten when new file or folder is opened

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Aebian
Junior Member
Junior Member
Posts: 12
Joined: 2016-06-20, 18:01 UTC
Location: Ontario, CA

Tabs get overwritten when new file or folder is opened

Post by *Aebian »

Hi, tried to search via google, didn't found the exact info I'm looking for.

My problem is, that I have sometimes tabs open that are not pinned, as I just use these temporarily until I close them.
However when a new ZIP archive (or any other archive) or explorer folder is opened, the last used tab on the left panel, that is not "locked" will get replaced by the new stuff I open.

What instead should occur is that a new tab will be opened, leaving the old one intact.
Is there a setting I missed or how can I fix this?

Thanks.

Regards,

Alex
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Tabs get overwritten when new file or folder is opened

Post by *Horst.Epp »

By default nothing in TC happens if some folder in Explorer is opened or a zip file is opended outside of TC.
If you have defined TC to be opened for folder requests you must add the /T /O parameters in the registry entry for it.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Tabs get overwritten when new file or folder is opened

Post by *petermad »

2Aebian
Just press Ctrl+ArrowUp on the folder or the archive (in stead of Enter), to have it opened i a new Tab. (Assumning that you haven't remapped Ctrl+Up)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Aebian
Junior Member
Junior Member
Posts: 12
Joined: 2016-06-20, 18:01 UTC
Location: Ontario, CA

Re: Tabs get overwritten when new file or folder is opened

Post by *Aebian »

@Horst.Epp:

Can you elaborate a bit more on that? I already use the commandline flags you describe but this does not account opening a ZIP archive e.g. via Chrome Downloads.

@petermad:

Yes I know that, this works, but not if I double click on a ZIP archive from e.g. Google Chrome's Downloads page.
I tried to check the behaviour via regedit but the file association is done differently in Windows 10 it seems:
https://i.imgur.com/JvYj3mW.png
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Tabs get overwritten when new file or folder is opened

Post by *Horst.Epp »

Aebian wrote: 2020-05-17, 21:14 UTC @Horst.Epp:

Can you elaborate a bit more on that? I already use the commandline flags you describe but this does not account opening a ZIP archive e.g. via Chrome Downloads.

@petermad:

Yes I know that, this works, but not if I double click on a ZIP archive from e.g. Google Chrome's Downloads page.
I tried to check the behaviour via regedit but the file association is done differently in Windows 10 it seems:
https://i.imgur.com/JvYj3mW.png
You can't control what Chrome or other apps are doing.
Using some registry entries you can have Tc opened for all folder requests which are using the Windows API for this.
I guess that will not help in your case.
But why do you double click archives in the Chrome download dialog and not in your file manager ?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Tabs get overwritten when new file or folder is opened

Post by *nsp »

Aebian wrote: 2020-05-17, 21:14 UTC @Horst.Epp:

Can you elaborate a bit more on that? I already use the commandline flags you describe but this does not account opening a ZIP archive e.g. via Chrome Downloads.

@petermad:

Yes I know that, this works, but not if I double click on a ZIP archive from e.g. Google Chrome's Downloads page.
I tried to check the behaviour via regedit but the file association is done differently in Windows 10 it seems:
https://i.imgur.com/JvYj3mW.png
The behavior is due to an external call when you open a zip file. TC seems to be defined as default application for archive files.
Can you check if it is the case (Normally Explorer, Chrome do not call TC unless you defined yourself this comprtement.)

Horst.Epp just gave you parameters for the TC commad line to open a new tab in target side (/O/T). You just have to check where the association is defined to add the parameters..
User avatar
Aebian
Junior Member
Junior Member
Posts: 12
Joined: 2016-06-20, 18:01 UTC
Location: Ontario, CA

Re: Tabs get overwritten when new file or folder is opened

Post by *Aebian »

@Horst.Epp:

Well it is easier to just click on the ZIP in Chrome when it has finished downloading while instead bring up TotalCMD and navigate to the folder where it has been saved. All Folder requests are already handled by TC, no issues there.

@nsp:

This is the location in regedit https://i.imgur.com/JvYj3mW.png but I can't make edits there.
Changing permissions in regedit is a safe way to hell, so I normally avoid it.

I even tried to create a shortcut of the totalcmd64.exe with the T/ /O Paramaters and even tried the "Open With" with this line:

Code: Select all

"C:\Programs\TotalCommander\TOTALCMD64.EXE" /T /O "%1"
https://i.imgur.com/mwQwhxe.png

No luck, nothing changed.
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Tabs get overwritten when new file or folder is opened

Post by *nsp »

Code: Select all

"C:\Programs\TotalCommander\TOTALCMD64.EXE" /T /O "%1"
is for sure not a file name and must not be defined like this.
What you have to do is to:
  1. Create a shortcut (Fist try ) in Desktop using Right-Click on totalcmd.64.exe and "send to desktop"
  2. Change the name to have comprehensive description/file name. TcNewTab in my sample
  3. You edit the created link and add the parameters /T/O %1 after totalcmd64.exe
  4. Test the behavior dropping a zip file on the icon.
  5. If all is OK navigate to a zip file
    1. Right Click,
    2. Select open with,
    3. more apps,
    4. Tick always use..
    5. search on computer
    6. select the TcNewTab lnk file from Desktop.
  6. All should work as you need
You can change Names, Places and adapt to your preferences.

-- Editing the registry for the Application/TotalCMD64.EXE is not a big deal..
User avatar
Aebian
Junior Member
Junior Member
Posts: 12
Joined: 2016-06-20, 18:01 UTC
Location: Ontario, CA

Re: Tabs get overwritten when new file or folder is opened

Post by *Aebian »

@nsp:

The exact thing you just told me above I already did and pointed out in the post above yours. It doesn't work, the zip will still replace old tab.
I even tried to create a shortcut of the totalcmd64.exe with the T/ /O Paramaters
Hence my options are out
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Tabs get overwritten when new file or folder is opened

Post by *petermad »

2Aebian
If I change (or make if not present):

Code: Select all

[HKEY_CLASSES_ROOT\Applications\TOTALCMD64.EXE\shell\open\command]
@="\"C:\\totalcmd\\TOTALCMD64.EXE\" \"%1\""
to:

Code: Select all

[HKEY_CLASSES_ROOT\Applications\TOTALCMD64.EXE\shell\open\command]
@="\"C:\\totalcmd\\TOTALCMD64.EXE\" /T /O \"%1\""
it works fine here.


And of course you still need:

Code: Select all

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.zip\UserChoice]
"Progid"="Applications\\TOTALCMD64.EXE"
Testet in Windows 7 and Windows 10

Adapt the path to totalcmd64.exe to the path where you have your TC installed.

If your TC is installed in C:\Programs\TotalCommander\ as indicated here: https://i.imgur.com/mwQwhxe.png then you can just double click on the .reg file in this archive: https://madsenworld.dk/tcmd/tc_zip_in_new_tab.zip to have the change made.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Aebian
Junior Member
Junior Member
Posts: 12
Joined: 2016-06-20, 18:01 UTC
Location: Ontario, CA

Re: Tabs get overwritten when new file or folder is opened

Post by *Aebian »

Thanks Peter, that works!

Code: Select all

[HKEY_CLASSES_ROOT\Applications\TOTALCMD64.EXE\shell\open\command]
@="\"C:\\totalcmd\\TOTALCMD64.EXE\" /T /O \"%1\""
seems to be the solution.
I used your ZIP and applied it.
Post Reply