Error searching in files a text with \t

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Juancho
Junior Member
Junior Member
Posts: 4
Joined: 2025-04-04, 17:33 UTC

Error searching in files a text with \t

Post by *Juancho »

I have found an error in the current version of Totalcmd and in version 9.0, both in 32-bit and 64-bit.

In the "Find Files" window, searching for the text "\t" does not find any files containing that text. However, files containing a TAB character (char 0x09) are found.

In the attached image, you can see a file named "ppp.txt" that contains the text 'hola\tools\dd'
[img]https://i.ibb.co/3mPh3B6K/tc-2.jpg[/img]

It can be reproduced as follows:
1) Open the "Find Files" window.
2) Leave the default settings.
3) Check "Find text".
4) Enter the text "\too" (for example) in the box on the right.
5) Click "Start search".
6) The search ends without finding the file "pppt.txt."

Searching with the uppercase T ("\T") does find the file.

This leads me to believe that Total Commander is treating "\t" (in lowercase) as a TAB char, even with the RegEx option (2) not activated.

Best regards.
User avatar
Dalai
Power Member
Power Member
Posts: 9941
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Error searching in files a text with \t

Post by *Dalai »

This is not a bug but documented behavior:
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: \\
To find the string "\t" you need to input "\\t".
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Juancho
Junior Member
Junior Member
Posts: 4
Joined: 2025-04-04, 17:33 UTC

Re: Error searching in files a text with \t

Post by *Juancho »

Oh, I see now.

It's even mentioned in the help. Just to be clear, I searched the forums and couldn't find anything similar. Now that I know what I'm looking for, I have found posts identical to this one.

Is there any way to disable this behavior? Maybe in the *.ini files?

Sorry for this post.
Thank you.
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Error searching in files a text with \t

Post by *white »

Juancho wrote: 2025-04-05, 11:49 UTC Is there any way to disable this behavior? Maybe in the *.ini files?
Regretfully, no.

You can add your support for such a feature in these threads:
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Error searching in files a text with \t

Post by *ghisler(Author) »

Moderator message from: ghisler(Author) » 2025-04-06, 07:08 UTC

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
User avatar
Juancho
Junior Member
Junior Member
Posts: 4
Joined: 2025-04-04, 17:33 UTC

Re: Error searching in files a text with \t

Post by *Juancho »

Thanks, Dalai and White.
Ghisler, I admire you
Post Reply