Incorrect "!" transfer to Everything

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

Moderators: Stefan2, white, sheep, Hacker

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

Post by *Horst.Epp » 2017-10-11, 12:31 UTC

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 10 x64 Version 1803
April 2018 Update (OS Build 17134.228)
TC 9.21 x64 and x86, Everything 1.4.1.907 (x64)

User avatar
Flint
Power Member
Power Member
Posts: 3159
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint » 2017-10-11, 12:40 UTC

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 9.21rc1 / Win7 x64 SP1, Win10 x64

User avatar
petermad
Power Member
Power Member
Posts: 7980
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2017-10-11, 12:49 UTC

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)
#524
Danish Total Commander Translator
TC 9.21rc3a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.91b3 on Android 6.0
Get Extended Total Commander Menus

User avatar
Flint
Power Member
Power Member
Posts: 3159
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint » 2017-10-11, 13:14 UTC

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 9.21rc1 / Win7 x64 SP1, Win10 x64

User avatar
petermad
Power Member
Power Member
Posts: 7980
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2017-10-11, 13:45 UTC

Maybe you need to force Everything to rebuild its database: Options -> Indexes -> Force Rebuild (button).
#524
Danish Total Commander Translator
TC 9.21rc3a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.91b3 on Android 6.0
Get Extended Total Commander Menus

User avatar
Flint
Power Member
Power Member
Posts: 3159
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint » 2017-10-11, 14:16 UTC

Did that. No changes.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 9.21rc1 / Win7 x64 SP1, Win10 x64

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

Post by *Horst.Epp » 2017-10-11, 14:32 UTC

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 10 x64 Version 1803
April 2018 Update (OS Build 17134.228)
TC 9.21 x64 and x86, Everything 1.4.1.907 (x64)

User avatar
Flint
Power Member
Power Member
Posts: 3159
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint » 2017-10-11, 14:42 UTC

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 9.21rc1 / Win7 x64 SP1, Win10 x64

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36255
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2017-10-11, 21:35 UTC

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
http://www.ghisler.com

User avatar
Flint
Power Member
Power Member
Posts: 3159
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Post by *Flint » 2017-10-11, 22:32 UTC

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 9.21rc1 / Win7 x64 SP1, Win10 x64

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36255
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2017-10-12, 09:49 UTC

"!"dir seems to be the best solution so far!
Author of Total Commander
http://www.ghisler.com

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36255
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2017-10-16, 12:52 UTC

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
http://www.ghisler.com

User avatar
petermad
Power Member
Power Member
Posts: 7980
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2017-10-16, 17:46 UTC

Confirmed that it works as described in TC 9.10rc2 :-)
#524
Danish Total Commander Translator
TC 9.21rc3a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.91b3 on Android 6.0
Get Extended Total Commander Menus

Post Reply