Lister: cannot search double backslash
Moderators: Hacker, petermad, Stefan2, white
Lister: cannot search double backslash
When viewing a text file using Lister, it doesn't search correctly double backslash.
Pressing Ctrl+F and entering '\\' makes lister to find single backslash '\'. If enter '\\\' or '\\\\' it looks for these strings as expected.
Pressing Ctrl+F and entering '\\' makes lister to find single backslash '\'. If enter '\\\' or '\\\\' it looks for these strings as expected.
Request: Could text be defined as everything one can type and find in a basic text-editor? Everything else eg line-breaks would then be searchable using regex.
I do happen to have a c:\test dir for trying out portable apps; searching this string in regedit is straightforward, in TC I had to do some thorough reading to discover I was in fact searching for Line Breaks.
Of course this would involve both the search dialog and the Lister view and find function (F3).
I do happen to have a c:\test dir for trying out portable apps; searching this string in regedit is straightforward, in TC I had to do some thorough reading to discover I was in fact searching for Line Breaks.
Of course this would involve both the search dialog and the Lister view and find function (F3).
Last edited by Bartusg on 2011-06-23, 20:21 UTC, edited 2 times in total.
Jungle,
Bartusg,
Roman
Why not? d: is in the text file.search should not be successful for d:\ pattern
Bartusg,
Tabs, actually.I do happen to have a c:\test dir for trying out portable apps; searching this string in regedit is straightforward, in TC I had to do some thorough reading to discover I was in fact searching for line breaks.
Roman
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.
That is the problem exactly, by searching strings like 'c:\test', 'd:\nieuwe profeten' or 'h:\disoneisharmless' one has to become a very particular kind of reader to scan for tab or line break collisions (yes/yes/no).Hacker wrote: Tabs, actually.
In other words I don't want to have do such scanning, that's what I have a computer for.
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
The point I try to make is that the design could be a bit more logical. Documentation would have to change, but for that we have text editors.sqa_wizard wrote: This is the way it is designed and well documented.
Please read: everything one can type and find in a basic text-editor... I was thinking of Notepad, but take a look at: http://files.myopera.com/bartgzn/files/Notepad++.JPGIt just works the way like powerful text editors do.
A backslash is something I can type and find in a simple text editor, and probably in Notepad++ too.The only thing you have to look for is:
If you are searching for a backslash, you have to double it ...
From another perspective, would you consider renting a car that can only be driven safely when properly reading the manual?
Well this isn't a bug, but I can support if Bartusg puts it in the Suggestions section as an optional feature - either by a wincmd.ini setting, or better by an option in the search dialogs (also Find files dialog) - an option that sticks between sessions.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar