cm_SyncChangeDir behaviour inside Zip files

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

cm_SyncChangeDir behaviour inside Zip files

Post 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
 
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: cm_SyncChangeDir behaviour inside Zip files

Post 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.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_SyncChangeDir behaviour inside Zip files

Post 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.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: cm_SyncChangeDir behaviour inside Zip files

Post by *Fla$her »

2ghisler(Author)
But he writes only about archives, not about folders.
Overquoting is evil! 👎
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

Re: cm_SyncChangeDir behaviour inside Zip files

Post 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 :!:
 
Last edited by Galizza on 2023-12-10, 09:36 UTC, edited 1 time in total.
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: cm_SyncChangeDir behaviour inside Zip files

Post 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?
Overquoting is evil! 👎
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

Re: i have noticed behaviour inside Zip files

Post by *Galizza »

Fla$her wrote: 2023-12-10, 09:36 UTC 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% 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.
 
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: i have noticed behaviour inside Zip files

Post 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.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: cm_SyncChangeDir behaviour inside Zip files

Post by *petermad »

Support++ for cm_SyncChangeDir being able to follow nested archives
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_SyncChangeDir behaviour inside Zip files

Post 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.
Author of Total Commander
https://www.ghisler.com
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

Re: cm_SyncChangeDir behaviour inside Zip files

Post 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 :!:
 
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: cm_SyncChangeDir behaviour inside Zip files

Post by *petermad »

You could create a new entry NestedZip= or similar in Wincmd.ini,
Support++
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: cm_SyncChangeDir behaviour inside Zip files

Post 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.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Post Reply