Copying file from search result in archive

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Motial
Junior Member
Junior Member
Posts: 3
Joined: 2020-08-02, 14:58 UTC

Copying file from search result in archive

Post by *Motial »

When making the following:
1. Searching files that incldues files in archived
2. making "feed to list box"
3.copy the files in the list box to the left

the whole archived is copy instead of just the file in the list.
This is rarely the expected behaviour.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Copying file from search result in archive

Post by *petermad »

If you look at the files in the search result, you will see only the archives, not names of files inside the archives, so when you copy, of course you copy what's in the list - nothing unexpected there.

But you could say that it is unexpected that the files inside the archives are not listed separately, like they are in the search result before it is fed to listbox.
Last edited by petermad on 2020-08-03, 21:06 UTC, edited 1 time in total.
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
Motial
Junior Member
Junior Member
Posts: 3
Joined: 2020-08-02, 14:58 UTC

Re: Copying file from search result in archive

Post by *Motial »

Actually you are correct.
Is there a way to make the result in the list like it was in the search result?
If not, there should be such an option (Even default behaviour).
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Copying file from search result in archive

Post by *MVV »

Unfortunately TC can't list files in archives together with regular files in listbox, so we can't copy them together. I'm pretty sure there is a few-years-old suggestion...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Copying file from search result in archive

Post by *ghisler(Author) »

The problem isn't the listing, that could be handled easily. The problem is the handling of files from multiple archives and/or regular files together, e.g. when the user then tries to delete, copy, pack, upload them, etc. etc.. That would mean a LOT of new complex functions to be created and maintained to handle such a mix of files.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Copying file from search result in archive

Post by *MVV »

Looks like you only need to define an interface with all operations and different implementations for file system or a packer plugin. But grouping similar operations within the same archive (e.g. for batch deletion) is a bit harder, because you need to go through the selection and find objects related to the same archive, so it may be easier to just create a lightweight file path wrapper that knows its kind and source (local file, file from archive, archive path), in such case it will be easy to enumerate selected items and group local files and files from same archives.
Post Reply