[REQ] Search exclude
Moderators: white, Hacker, petermad, Stefan2
[REQ] Search exclude
2 Mr Ghisler
Please, add the option to turn off search for files names in certain, defined by user, types of archive files. Useful with plugins like AVI, REG.
Please, add the option to turn off search for files names in certain, defined by user, types of archive files. Useful with plugins like AVI, REG.
Last edited by Gral on 2005-07-02, 10:38 UTC, edited 1 time in total.
Yes, would be useful!
Syntax to define this could be "{search-for pattern} | {archtype(s) to exclude}/" (e.g. "*.txt | *.7z/")
Workaround:
1. Switch to branch view (<Ctrl><B>)
2. Mark the files (archives), you don't like to be searched in. Can be done with a user defined selection (e.g. "> Arcs SearchExcl")
3. Invert the selection
4. Run the search (<Alt><F7>) with checkbox "Only search in selected directories/files" checked.
Syntax to define this could be "{search-for pattern} | {archtype(s) to exclude}/" (e.g. "*.txt | *.7z/")
Workaround:
1. Switch to branch view (<Ctrl><B>)
2. Mark the files (archives), you don't like to be searched in. Can be done with a user defined selection (e.g. "> Arcs SearchExcl")
3. Invert the selection
4. Run the search (<Alt><F7>) with checkbox "Only search in selected directories/files" checked.
Good idea !Hacker wrote: More TC-like workaround:
Alt-F7, Plugins, Search in Plugins, Property Ext, !contains, fill out the rest to your liking, add more aswell.
Unfortunately it seems not to work properly (Bug? Or do I miss anything?). Example:
Given:
Archive.7z/Test.lng
Archive.7z/Test.txt
Archive.zip/Test.lng
Archive.zip/Test.txt
Test.lng
Test.txt
Search for "*.lng" with checkbox "Search archives" checked. Result will be:
Archive.7z/Test.lng
Archive.zip/Test.lng
Test.lng
Let's try to exclude *.7z from search now using the "Plugins" tab (as described in your posting). Checkbox "Search achives" in tab "General" is still checked. The result will be:
Test.lng
The entry
Archive.zip/Test.lng
is missing!
EDIT:
Even if it would work: I guess, that TC would enter any archive first (to extract the filenames) and would remove the unwanted entries afterwards (don't know... am I right?). There should be a way to exclude archives from search "in advance" (before TC enters them).
Plugin Search does not work inside Archives (somebody correct me if I'm wrong, but even a simler condition would not work).
I'm not sure, but maybe it's possible to do this with RegExp search...
Anyway, I have a proposition:
Why not treat archives same as directories? For directories you have the option to exclude some, even using whildcards.
This way you could just say:
Search for: "*.lng | *.7z\"
I'm not sure, but maybe it's possible to do this with RegExp search...
Anyway, I have a proposition:
Why not treat archives same as directories? For directories you have the option to exclude some, even using whildcards.
This way you could just say:
Search for: "*.lng | *.7z\"
Yes, your suggestion is similar to mine:szlori wrote:[...]Anyway, I have a proposition: [...] Search for: "*.lng | *.7z"
TC is IMHO a bit inconsistent the way it displays filepaths within archives:van Dusen wrote:Syntax to define this could be "{search-for pattern} | {archtype(s) to exclude}/" (e.g. "*.txt | *.7z/")
* In search result (<Alt><F7>) TC uses a foreslash (</>) to separate the archive's filename from file-/foldernames within the archive (that's the reason, why I suggest a "/")
* In the filepanels it uses a backslash (<\>) instead.
Hence, "/" or "" would be both ok
To be honest, I missed that part of your post...van Dusen wrote:Yes, your suggestion is similar to mine:szlori wrote:[...]Anyway, I have a proposition: [...] Search for: "*.lng | *.7z"
van Dusen wrote:Syntax to define this could be "{search-for pattern} | {archtype(s) to exclude}/" (e.g. "*.txt | *.7z/")
I would say your suggestion is the same (the difference is an unimportant detail).
This is like "search but don't display files found in archives with extensions..."Hacker wrote: More TC-like workaround:
Alt-F7, Plugins, Search in Plugins, Property Ext, !contains, fill out the rest to your liking, add more aswell.
I think about something different: "don't search for files in archives with extensions..."
Exactly !van Dusen wrote:Even if it would work: I guess, that TC would enter any archive first (to extract the filenames) and would remove the unwanted entries afterwards (don't know... am I right?). There should be a way to exclude archives from search "in advance" (before TC enters them).
I bet to keep the thread alive and on the first page.Hacker wrote:Gral,
Is there any special reason why you keep deleting your posts and reposting them?
Hacker (Moderator)
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact: