Incorrect "!" transfer to Everything

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

User avatar
Horst.Epp
Power Member
Power Member
Posts: 6429
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Flint wrote:Strange, on my computer it still does not work. Find result is just empty. I tested 32- and 64-bit versions, with clean INI. If "Everything" option is ticked — "No files found". Unticked — the file or dir I searched is displayed. Using Everything itself I also can find those names correctly.

Win7 x64, TC 9.10rc1.
It works fine here with TC 9.10RC1 x86 and x64.
What version of Everything do you run ?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

1.4.1.877 x64, with service enabled.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Hmm, strange - Still works fine here:
http://madsenworld.dk/tcmd/evsearch.png
http://madsenworld.dk/tcmd/evsettings.png

Everything version 1.4.1.877 (x64)
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

My situation:
http://flint-inc.ru/Temp/tcbeta910/everything%21.png
http://flint-inc.ru/Temp/tcbeta910/everything%21-opts.png

Tried:
* internal and external Find Files;
* searching just for !, and for !dir or !file.txt;
* searching from drive root or specific subdirectory.
Results are absolutely the same.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Maybe you need to force Everything to rebuild its database: Options -> Indexes -> Force Rebuild (button).
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Did that. No changes.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6429
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

petermad wrote:Maybe you need to force Everything to rebuild its database: Options -> Indexes -> Force Rebuild (button).
He said that in Everything itself the files are found.
So no problem with the database.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

I found it.
Everything options -> Search -> Match path when a search term contains a path separator.
I had this option turned OFF. When I turn it ON, TC finds the files/dirs starting with "!".

BUT!
If I specify just the "!" as search, TC only finds items that start with exclamation mark, but not those that contain it inside (like "d!ir" or "f!ile"). I don't think backslash is actually the escape symbol here. I think it is treated like path separator, so that makes Everything stop treating it like NOT, and then it only finds paths that contain "\!" - that is, items that start with "!".
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately there is no better solution - there is no escape character in the Everything syntax. I could use a * instead, but it may cause other problems...
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

I'm not sure how the API works, but these methods work OK for me in the main Everything window:
* if I take phrase with exclamation mark in quotes, or even just the exclamation mark itself, like

Code: Select all

"!dir"
"!"dir
* using Regex option.

Is it possible for TC to pass a regex into Everything? If yes that I'd suggest that TC transforms the search phrase by escaping all regexp meta-characters (e.g. "C# vs. C++.pdf" -> "C# vs\. C\+\+\.pdf"), and send this expression to Everything as regexp, it should be the safest way. If not, it's worth a try to quote the exclamation marks like in the examples given above, instead of adding backslash.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

"!"dir seems to be the best solution so far!
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I'm now sending
"!"dir
to Everything when the user searches for
!dir
which should find these names:
!dir
!dir.txt
other!dir.txt
etc.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed that it works as described in TC 9.10rc2 :-)
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply