Page 1 of 1
cm_SyncChangeDir behaviour inside Zip files
Posted: 2023-12-10, 08:50 UTC
by Galizza
Hi, when i compare two Zip files that have identical directory structure, it's very usefull to use cm_SyncChangeDir to navigate through them and it works perfectly. But sometimes i find a Zip file inside some of these directories and even though the names of the Zip files are identical on both panels Tc 11.02 refuses to enter on them. May you consider to add this feature?, thanks
Tc 11.02 x86 / Windows 10 20H2
Re: cm_SyncChangeDir behaviour inside Zip files
Posted: 2023-12-10, 09:12 UTC
by Fla$her
Galizza wrote: 2023-12-10, 08:50 UTCBut sometimes i find a Zip file inside some of these directories ...
If this is Inconstant behavior, then why aren't you asking about it in the bugs section?
And an example with the exact paths and the value of SyncChangeDirMode will be required.
Re: cm_SyncChangeDir behaviour inside Zip files
Posted: 2023-12-10, 09:13 UTC
by ghisler(Author)
cm_SyncChangeDir can disable itself when trying to enter a directory which doesn't exist in the other panel. By default, you get a warning beep first, and Total Commander refuses to enter the directory which doesn't exist in the other panel. When you then try again, TC disabled cm_SyncChangeDir and enters the directory. There is a new wincmd.ini option "SyncChangeDirMode" which controls this.
You can add a button with the command cm_SyncChangeDir to see whether the function is still active or not. With some SyncChangeDirMode it can also get disabled temporarily when you enter such a folder, and re-enabled when you return to the previous directory.
In your case the function was either disabled already, or the two archive names are actually slightly different.
Re: cm_SyncChangeDir behaviour inside Zip files
Posted: 2023-12-10, 09:15 UTC
by Fla$her
2ghisler(Author)
But he writes only about archives, not about folders.
Re: cm_SyncChangeDir behaviour inside Zip files
Posted: 2023-12-10, 09:32 UTC
by Galizza
2Fla$her
Hi, I hope that this example will explain it better.
Two zip files Backup 12-Nov-2022.Zip and Backup 26-Nov-2022.Zip
with exactly same directory structure inside both archives
Directory structure
\Docx\
\Pdf\
\Other\
\Xls
I open 12-Nov-2022.Zip on the left panel and Backup 26-Nov-2022.Zip
on the right panel.
Inside \Other\ directory there is a Zip file named Holidays.Zip,
and when i try to go inside it Tc don't allow me to do so, even
though Holidays.Zip exist on both panels.
Thanks
Re: cm_SyncChangeDir behaviour inside Zip files
Posted: 2023-12-10, 09:36 UTC
by Fla$her
2Galizza
Are you talking about the archive inside the archive? Well, what did you expect if such an archive would be unpacked to the %Temp%\_tc folder in this case?
Re: i have noticed behaviour inside Zip files
Posted: 2023-12-10, 10:04 UTC
by Galizza
Fla$her wrote: 2023-12-10, 09:36 UTC
2
Galizza
Are you talking about the archive inside the archive? Well, what did you expect if such an archive would be unpacked to the %Temp% folder in this case?
Yes, i'm talking about the archive inside the archive, \Other\Holidays.Zip is inside Backup 12-Nov-2022.Zip and inside Backup 26-Nov-2022.Zip.
With cm_SyncChangeDir activated Tc do not allow me to go inside Holidays.Zip, so i want to suggest that cm_SyncChangeDir is not deactivated in this case.
It should be easy to implement because if i go inside Holidays.Zip by pressing enter on both panels and i activate cm_SyncChangeDir again i can navigate inside this archive correctly. Thank you.
Re: i have noticed behaviour inside Zip files
Posted: 2023-12-10, 10:26 UTC
by Fla$her
Galizza wrote: 2023-12-10, 10:04 UTCIt should be easy to implement
A lot of things can be easily implemented, but it all depends on the desire of the author. See
here for a similar case.
Re: cm_SyncChangeDir behaviour inside Zip files
Posted: 2023-12-11, 00:51 UTC
by petermad
Support++ for cm_SyncChangeDir being able to follow nested archives
Re: cm_SyncChangeDir behaviour inside Zip files
Posted: 2023-12-11, 17:05 UTC
by ghisler(Author)
Currently this isn't supported because TC has to unpack the inner archive, which could take a lot of time (unexpected for the user) if the archive on the other size is much larger than on the active side.
Re: cm_SyncChangeDir behaviour inside Zip files
Posted: 2023-12-11, 20:06 UTC
by Galizza
ghisler(Author) wrote: 2023-12-11, 17:05 UTC
Currently this isn't supported because TC has to unpack the inner archive, which could take a lot of time (unexpected for the user) if the archive on the other size is much larger than on the active side.
You could create a new entry
NestedZip= or similar in Wincmd.ini, disabled by default, this way only the users who really need it will use it. Thanks
Re: cm_SyncChangeDir behaviour inside Zip files
Posted: 2023-12-11, 20:19 UTC
by petermad
You could create a new entry NestedZip= or similar in Wincmd.ini,
Support++
Re: cm_SyncChangeDir behaviour inside Zip files
Posted: 2023-12-13, 20:49 UTC
by hi5
If this is added:
Given the "might take a lot of time" I would suggest that regardless of the setting a user warning/interaction would be useful asking if they wish to proceed with SyncChangeDir - if you indeed have a large archive, an inactive TC might not something you'd like to happen if you are just "browsing" around for a bit. e.g. it has to be conscious choice made by the user.