new feature req: search for words in filenames in any order
Moderators: Hacker, petermad, Stefan2, white
new feature req: search for words in filenames in any order
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.
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.
This searchstring :
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
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
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
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.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.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
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.leopoldus wrote: You must go through three steps of search -
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
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
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.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"
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.leopoldus wrote: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.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"
Hope this new option in TC 6.5 will solve this my old problem.


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
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams