Tabs get overwritten when new file or folder is opened
Moderators: white, Hacker, petermad, Stefan2
Tabs get overwritten when new file or folder is opened
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
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
Re: Tabs get overwritten when new file or folder is opened
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.
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
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
Re: Tabs get overwritten when new file or folder is opened
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)
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
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
Re: Tabs get overwritten when new file or folder is opened
@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
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
Re: Tabs get overwritten when new file or folder is opened
You can't control what Chrome or other apps are doing.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
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
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
Re: Tabs get overwritten when new file or folder is opened
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.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
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..
Re: Tabs get overwritten when new file or folder is opened
@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:
https://i.imgur.com/mwQwhxe.png
No luck, nothing changed.
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"
No luck, nothing changed.
Re: Tabs get overwritten when new file or folder is opened
Code: Select all
"C:\Programs\TotalCommander\TOTALCMD64.EXE" /T /O "%1"
What you have to do is to:
- Create a shortcut (Fist try ) in Desktop using Right-Click on totalcmd.64.exe and "send to desktop"
- Change the name to have comprehensive description/file name. TcNewTab in my sample
- You edit the created link and add the parameters /T/O %1 after totalcmd64.exe
- Test the behavior dropping a zip file on the icon.
- If all is OK navigate to a zip file
- Right Click,
- Select open with,
- more apps,
- Tick always use..
- search on computer
- select the TcNewTab lnk file from Desktop.
- All should work as you need
-- Editing the registry for the Application/TotalCMD64.EXE is not a big deal..
Re: Tabs get overwritten when new file or folder is opened
@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.
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.
Hence my options are outI even tried to create a shortcut of the totalcmd64.exe with the T/ /O Paramaters
Re: Tabs get overwritten when new file or folder is opened
2Aebian
If I change (or make if not present):
to:
it works fine here.
And of course you still need:
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.
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\""
Code: Select all
[HKEY_CLASSES_ROOT\Applications\TOTALCMD64.EXE\shell\open\command]
@="\"C:\\totalcmd\\TOTALCMD64.EXE\" /T /O \"%1\""
And of course you still need:
Code: Select all
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.zip\UserChoice]
"Progid"="Applications\\TOTALCMD64.EXE"
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
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
Re: Tabs get overwritten when new file or folder is opened
Thanks Peter, that works!
seems to be the solution.
I used your ZIP and applied it.
Code: Select all
[HKEY_CLASSES_ROOT\Applications\TOTALCMD64.EXE\shell\open\command]
@="\"C:\\totalcmd\\TOTALCMD64.EXE\" /T /O \"%1\""
I used your ZIP and applied it.