Bug in searches.

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Bug in searches.

Post by *m^2 »

I have following class:

Code: Select all

aa_SearchFlags=0|000002000020|||||||||0000|
aa_SearchFor=ahk;js
It should find files and directories with name "ahk" or "js".
It doesn't.
If I change "js" to i.e. "js*", it works fine..but it's something different.
Last edited by m^2 on 2006-11-18, 08:49 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed!

An the interseting part is that both directories named ahk AND js is found with any of the following searches:
*ahk js
ahk* js
ahk *js
ahk js*
*ahk *js
*ahk js*
ahk* *js
ahk* js*
*ahk* js
*ahk *js
*ahk* *js*
ahk *js*
*ahk *js*
ahk* *js*

but NOT with:
ahk js

I don't se the logic - A wildcard has never been necessary if you write only one strings, so why is it necessary when there are two string, and then why isn't it necessary for both strings
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

'?' also helps.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

?' also helps.
But then you will only find the name with the ? if it is exactly on letter longer i.e. if you got at dir with the name of ahk and one with js and search you searc for ahk? js, then the js dir will be found, but not the ahk dir.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Searches are not separated by semicolons but spaces!

If you want to search for all extensions ahk and js, you have to enter that:

Code: Select all

*.ahk *.js
There has been a long discussion in a German thread a while ago in which ghisler has announced enhancements for TC 7:
http://ghisler.ch/board/viewtopic.php?t=9644

Lefteous has done several tests here:
http://ghisler.ch/board/viewtopic.php?p=78521#78521

And ghisler has explained what TC does right now here:
http://ghisler.ch/board/viewtopic.php?p=78777#78777

It looks like nothing of this confusing behaviour has changed... I still don't understand it myself I think.

Icfu
This account is for sale
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

To search for multiple substrings, you must have a wildcard in any of them. The simple "auto-add wildcard" search method only works for a single word.
Author of Total Commander
https://www.ghisler.com
Post Reply