Find in files, find in viewer doesn't work
Moderators: Hacker, petermad, Stefan2, white
Find in files, find in viewer doesn't work
Repro steps A:
1. Create ansi file 'file.txt' with content:
g:\branches\trunk\bin\script.bat
2. Search for any file with content:
g:\branches\trunk
Expected results: File should be found
Actual result: No files found
Repro steps B:
1. Create ansi file 'file.txt' with content:
g:\branches\trunk\bin\script.bat
2. Open this file with viewer
3. Ctrl+F and enter:
g:\branches\trunk
Expected results: Text should be found
Actual result: Not found: window appears
Version: 8.51a x64
1. Create ansi file 'file.txt' with content:
g:\branches\trunk\bin\script.bat
2. Search for any file with content:
g:\branches\trunk
Expected results: File should be found
Actual result: No files found
Repro steps B:
1. Create ansi file 'file.txt' with content:
g:\branches\trunk\bin\script.bat
2. Open this file with viewer
3. Ctrl+F and enter:
g:\branches\trunk
Expected results: Text should be found
Actual result: Not found: window appears
Version: 8.51a x64
TC treats "\t" as "Tab" (0x09) in this case (also "\n" as a line break).
Use "\\t" instead.
From help:
Use "\\t" instead.
From help:
Code: Select all
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: \\ .
No bug, but intended and documented behaviour:
Dalai
RegardsTC help, Find files 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: \\ .
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
A good example how to solve the issue is Notepad++. There is 'normal' search - plain text, extended - with \n \t \r etc, and regexp.
As an 'average user' I expect plain text search, since I'm not searching for anything that contains '\\t' but '\t'. Current behavior is counter intuitive. Where can I find information what pairs will not work as expected (or only \t and \n are supported, which would be few)?
As an 'average user' I expect plain text search, since I'm not searching for anything that contains '\\t' but '\t'. Current behavior is counter intuitive. Where can I find information what pairs will not work as expected (or only \t and \n are supported, which would be few)?
You don't have to worry about \t or \n, just double the backslashes.
Regards
Dalai
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
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
I agree that this is not quite intuitive and could be done in a better way, e.g. an additional checkbox "Literal search" would do where \, \t and \n are treated as normal text.
Regards
Dalai
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
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror