new feature req: search for words in filenames in any order

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

new feature req: search for words in filenames in any order

Post by *leopoldus »

Say we have a document with a letter to Peter Johnson. Filename is surely letter to Peter Johnson or may be letter to Johnson Peter or may be Peter Johnson, letter or something like this.
It is very difficult now to search for this file, if I do not remember the exact order of words in the name. I have to try search queries letter*Peter*Johnson, then letter*Johnson*Peter, then Peter*Johnson*letter etc.... But it would be nice to have an option like "ignore words order", in this case search query [letter Peter Johnson] will find this file at the first demand. I think this option to make searching by TC much more convenient.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

This searchstring :

Code: Select all

*letter* *Peter* *Johnson*

should do the trick. It searches for any file wich contains either one of the three words letter, Peter or and Johnson.
So it will find all of these files:
Johnson Letter.txt
Johnson Peter Letter.txt
Johnson.txt
letter for Johnson.txt
letter for Peter .txt
letter for Peter Johnson.txt
Peter Johnson Letter.txt



If this search finds to many results you may select all hits ( press [Num*] ) and refine your search with 'only search in selected files/directories' checked) - so only the results will be searched.


HTH

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
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

Post by *leopoldus »

Sheepdog wrote: If this search finds to many results you may select all hits ( press [Num*] ) and refine your search with 'only search in selected files/directories' checked) - so only the results will be searched.
Yes, this is the thing I do mean. You must go through three steps of search - although this option "ignore words order in query" could enable us to do this with one click.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC 6.5 will support this (3 search words with AND) via the new content plugins - with the internal "Name" field. TC 6.5 is now planned for mid December.
Author of Total Commander
https://www.ghisler.com
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

leopoldus wrote: You must go through three steps of search -
No. You can already type *letter* *peter* *johnson* as one searchstring and will find all mentioned files in one step. You would need only more steps if you have a lot of files that fit the search string e.g. if the Folder contains hundreds of files "Letter to ....txt". But then you may only search for *peter* *johnson* that will find any file with the word peter or johnson in it.

Or did I miss something?

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
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

Post by *leopoldus »

You would need only more steps if you have a lot of files that fit the search string e.g. if the Folder contains hundreds of files "Letter to ....txt"
If you have many folders arranged by addressee names (Peter Johnson, John Peterson, etc), you can't manage to find all *letters*Peter*Johnson* by one step, but you need to make additional outsorting operations.

Hope this new option in TC 6.5 will solve this my old problem.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

leopoldus wrote:
You would need only more steps if you have a lot of files that fit the search string e.g. if the Folder contains hundreds of files "Letter to ....txt"
If you have many folders arranged by addressee names (Peter Johnson, John Peterson, etc), you can't manage to find all *letters*Peter*Johnson* by one step, but you need to make additional outsorting operations.

Hope this new option in TC 6.5 will solve this my old problem.
You are right. My thoughts were more theoretical because I don't use to write so many letters. :lol: ;)

Hope the new version will ft your desires.

kind regards

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Post Reply