Find text containing backslash in a file content = 0 results

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
redfox
Junior Member
Junior Member
Posts: 98
Joined: 2015-02-09, 11:36 UTC
Location: Czech Republic

Find text containing backslash in a file content = 0 results

Post by *redfox »

Steps to reproduce:

1) Create a txt (bat etc.) file in a directory. The text will contain "\", for example \test.
2) Press Alt+F7, fill a search phrase "\test" in the "find text" field and start the search; all the search options are default (Ansi win/dos, utf 8/16 ON).
3) No results will be found.

Additional testing:

Change the file content to

a) \test no results
b) test\ ok
c) te\st ok
d) c\test no result
e) c:\test no result
f) ccc\test no result

Please, fix the bug ASAP, it is very serious for me.
Thanks
Last edited by redfox on 2017-05-14, 13:41 UTC, edited 1 time in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Next time let out the ASAP
and take the time to read more from the help !
The \t has to be escaped as it stands for a tab.
So you have to search for \\test
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
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
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

TC help wrote:Find text
If this option is checked, you can enter text to be searched. With \t you find tabstops, and with \n line breaks (ENTER) in texts. To find a backslash \, you need to give it twice: \\ .
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
redfox
Junior Member
Junior Member
Posts: 98
Joined: 2015-02-09, 11:36 UTC
Location: Czech Republic

Post by *redfox »

There should be an option at least in the wincmd.ini to enable text searching in a standard way, without automatically resolving backslash as a part of a possible escape sequence.
This one, i.e. the need of typing it twice, is really uncomfortable. Most people want to search for a phrase containing one or more backslash characters - especially in a source code / file paths. On the other side, finding a tab (\t) or a newline (\n) sequence in a file is a rare case, I personally never needed it.

Sorry for the "ASAP".
Last edited by redfox on 2017-05-14, 13:47 UTC, edited 3 times in total.
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved to the English forum.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I also think that escaping should be optional, as it is in text editors, because normal text is searched much more often than escaped text...
Post Reply