[REQ] Search exclude

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Gral
Power Member
Power Member
Posts: 1468
Joined: 2005-01-26, 15:12 UTC

[REQ] Search exclude

Post by *Gral »

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.
Last edited by Gral on 2005-07-02, 10:38 UTC, edited 1 time in total.
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

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.
User avatar
Hacker
Moderator
Moderator
Posts: 13073
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

;) More TC-like workaround:
Alt-F7, Plugins, Search in Plugins, Property Ext, !contains, fill out the rest to your liking, add more aswell.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

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.
Good idea :) !
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).
User avatar
szlori
Senior Member
Senior Member
Posts: 263
Joined: 2005-01-17, 07:12 UTC
Location: Sydney

Post by *szlori »

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\"
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

szlori wrote:[...]Anyway, I have a proposition: [...] Search for: "*.lng | *.7z"
Yes, your suggestion is similar to mine:
van Dusen wrote:Syntax to define this could be "{search-for pattern} | {archtype(s) to exclude}/" (e.g. "*.txt | *.7z/")
TC is IMHO a bit inconsistent the way it displays filepaths within archives:

* 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 ;)
User avatar
szlori
Senior Member
Senior Member
Posts: 263
Joined: 2005-01-17, 07:12 UTC
Location: Sydney

Post by *szlori »

van Dusen wrote:
szlori wrote:[...]Anyway, I have a proposition: [...] Search for: "*.lng | *.7z"
Yes, your suggestion is similar to mine:
van Dusen wrote:Syntax to define this could be "{search-for pattern} | {archtype(s) to exclude}/" (e.g. "*.txt | *.7z/")
To be honest, I missed that part of your post... :oops:
I would say your suggestion is the same (the difference is an unimportant detail). :D
User avatar
Gral
Power Member
Power Member
Posts: 1468
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

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.
This is like "search but don't display files found in archives with extensions..."
I think about something different: "don't search for files in archives with extensions..."
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).
Exactly !
User avatar
Gral
Power Member
Power Member
Posts: 1468
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Maybe in TC7 ?
User avatar
Hacker
Moderator
Moderator
Posts: 13073
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Gral,
Is there any special reason why you keep deleting your posts and reposting them?

Hacker (Moderator)
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Hacker wrote:Gral,
Is there any special reason why you keep deleting your posts and reposting them?

Hacker (Moderator)
I bet to keep the thread alive and on the first page.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Its funny how moderator didn't realise that....
Habemus majkam!
Post Reply