-Search: exclude string also influences include string
Moderators: Hacker, petermad, Stefan2, white
-Search: exclude string also influences include string
Searching for [*test text.txt*] (without the brackets) finds for example:
2test text.txt2
test
test text.txt
text.txt
Searching for [*test text.txt*|"2test text.txt2"] (without the brackets) only finds:
test
text.txt
See here for notes on how a search pattern is interpreted.
2test text.txt2
test
test text.txt
text.txt
Searching for [*test text.txt*|"2test text.txt2"] (without the brackets) only finds:
test
text.txt
See here for notes on how a search pattern is interpreted.
- ghisler(Author)
- Site Admin
- Posts: 50865
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
There is no bug.
*test text.txt*
means
*test
or
text.txt*
or
*test text.txt* <- this third one is only found when there are no more conditions, for the users who forget to set the double quotes.
because you didn't set any double quotes.
*test text.txt*
means
*test
or
text.txt*
or
*test text.txt* <- this third one is only found when there are no more conditions, for the users who forget to set the double quotes.
because you didn't set any double quotes.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I think 100% of the users won't expect this.ghisler(Author) wrote:this third one is only found when there are no more conditions
Another example
search for: elvis presley*.txt
finds:
c:\lyrics\backup\elvis presley - Don't Be Cruel.txt
c:\lyrics\backup\elvis presley - Heartbreak Hotel.txt
c:\lyrics\backup\elvis presley - Hound Dog.txt
c:\lyrics\elvis presley - Don't Be Cruel.txt
c:\lyrics\elvis presley - Heartbreak Hotel.txt
c:\lyrics\elvis presley - Hound Dog.txt
search for: elvis presley*.txt|backup\
finds:
(nothing)
- ghisler(Author)
- Site Admin
- Posts: 50865
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sorry, I prefer to keep it this way. I added the results for
"*test text.txt*"
when the user entered just
*test text.txt*
for the convenience of the user who doesn't read the docs. Users who know about | should be knowledgable enough to read the help.
"*test text.txt*"
when the user entered just
*test text.txt*
for the convenience of the user who doesn't read the docs. Users who know about | should be knowledgable enough to read the help.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
The help says you don't have to use quotes. The | behavior (exclude) is not explained other than by examples. It does not state you have to use quotes when you specify an exclude condition.ghisler(Author) wrote:for the convenience of the user who doesn't read the docs. Users who know about | should be knowledgable enough to read the help.
TOTALCMD.CHM wrote:New: Names with spaces no longer need to be put in double quotes, e.g. Letter to Mr. Smith.doc. Total Commander now looks for both the entire name and the name parts individually.
- ghisler(Author)
- Site Admin
- Posts: 50865
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I have documented the current behaviour in the help now.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com