Could not select proper files

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
AntonyD
Power Member
Power Member
Posts: 1554
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Could not select proper files

Post by *AntonyD »

Make sure you have some files where some of them have in their names the sub-string " Password = "
Like: "archive of tools. Password = 4gT^&v3F@.7z"
Now try to select such files with help of pressing "NumPad +" and typing in field "Specify file type, e.g...."
this pattern: "*Password =*" and you will get "No matches found!"
Try to use this: "*Password*=*" - and you will success....
IMHO, bug...
#146217 personal license
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Could not select proper files

Post by *petermad »

"*Password =*" works fine here - but *Password =* (without quotes) doesn't - I think that is to be expected - file name patterns with spaces needs to be quoted
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
User avatar
AntonyD
Power Member
Power Member
Posts: 1554
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Could not select proper files

Post by *AntonyD »

I don't see the point in this action. As a live person, I should be able to enter the part of the name that needs to be found in the simplest way, combining it with options from the list of files on the panel in order to eventually highlight the entire file whose name contains this part.
Are you saying that I have to drag into this dialog all the logic that is already nailed down in the file search dialog code?
So maybe then I should get rid of the * symbol completely? It does not bring any benefit to the sub-strings' comparison process then.
#146217 personal license
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Could not select proper files

Post by *petermad »

Hel for Find files wrote:When the search string contains a dot, Total Commander will look for the exact name match.
Imagine you have these files:
1Password =
2Password
4gT^&v3F@.7z
=
= 4gT^&v3F@.7z
Password
Password =
Password = 4gT^&v3F@
Password = 4gT^&v3F@.7z

And you use the Expand selection dioalog (Num+)

Without the quotation marks *Password =* will mark:
2Password
=
= 4gT^&v3F@.7z
Password

but not these files:
1Password =
4gT^&v3F@.7z
Password =
Password = 4gT^&v3F@
Password = 4gT^&v3F@.7z


Using "*Password =*" TC will mark:
1Password =
Password =
Password = 4gT^&v3F@
Password = 4gT^&v3F@.7z

but not:
2Password
4gT^&v3F@.7z
=
= 4gT^&v3F@.7z
Password


Using *Password*=* in the Expand selection dialog will find the same files as using "*Password =*"

In comparison - TC's Find files will find all files except 4gT^&v3F@.7z when using the search string *Password =*

On the other hand using *Password*=* with Find files only finds these:
c:\test2\1\1Password =
c:\test2\1\Password =
c:\test2\1\Password = 4gT^&v3F@
c:\test2\1\Password = 4gT^&v3F@.7z

So the rules for Find Files and Expand selection are not the same which is confusing and inconsistent

Unfortunately there is no Help for the Expand selection dialog - and the help "Selecting files" ( hh.exe %COMMANDER_PATH%\TOTALCMD.CHM::proc_select.htm ) does not fully address this issue.
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
Post Reply