[TC10.52 (at least, maybe previous versions too] Multiple folders in 'Search For' field of Search dialogue
Moderators: Hacker, petermad, Stefan2, white
[TC10.52 (at least, maybe previous versions too] Multiple folders in 'Search For' field of Search dialogue
The "Search For" field in the Search dialogue admits a multiple file specification, each entry separated by spaces (or semicolons).
But, when trying to specify multiple folders (directories), none are selected, no matter whether they are enclosed in double-quotes, separated by spaces or semicolons. More than one entry specified and none is/are recognized.
I'm trying to get a Search definition to match several folders (with the [X] Directory attribute set) for the "Define colors by file type"
Is this a bug or normal behavior?
But, when trying to specify multiple folders (directories), none are selected, no matter whether they are enclosed in double-quotes, separated by spaces or semicolons. More than one entry specified and none is/are recognized.
I'm trying to get a Search definition to match several folders (with the [X] Directory attribute set) for the "Define colors by file type"
Is this a bug or normal behavior?
Regards,
Sergio
TCmd license #12059
TC11.03x86/x64 | Win11 Pro
Sergio
TCmd license #12059
TC11.03x86/x64 | Win11 Pro
Re: [TC10.52 (at least, maybe previous versions too] Multiple folders in 'Search For' field of Search dialogue
2Helix751
Put a dot after one of the dir names:
notice:
and
will find "dir1", "dir2" and "dir3"
but:
will find "dir1", "dir2", "dir3", "dir1 dir2 dir3" and "dir2 dir3""
Put a dot after one of the dir names:
Code: Select all
dir1. dir2 dir3
You can also just start wit a dot:help wrote:When the search string contains a dot, Total Commander will look for the exact name match
Code: Select all
. dir1 dir2 dir3
Code: Select all
dir1. dir2 dir3
Code: Select all
. dir1 dir2 dir3
but:
Code: Select all
dir1 dir2 dir3.
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
Re: [TC10.52 (at least, maybe previous versions too] Multiple folders in 'Search For' field of Search dialogue
Notice thatpetermad wrote: 2022-10-31, 00:25 UTC notice:andCode: Select all
dir1. dir2 dir3
will find "dir1", "dir2" and "dir3"Code: Select all
. dir1 dir2 dir3
Code: Select all
dir1. dir2 dir3
and
Code: Select all
. dir1 dir2 dir3
No, it will not find "dir2 dir3"petermad wrote: 2022-10-31, 00:25 UTC but:will find "dir1", "dir2", "dir3", "dir1 dir2 dir3" and "dir2 dir3""Code: Select all
dir1 dir2 dir3.
To only find "dir1", "dir2" and "dir3", include a dot or wildcard and something that cannot be found.
Or add quotes around at least one folder name (while also including a dot or wildcard).
Examples:
Code: Select all
:? dir1 dir2 dir3
. "dir1" dir2 dir3
Code: Select all
^(dir1|dir2|dir3)$
Re: [TC10.52 (at least, maybe previous versions too] Multiple folders in 'Search For' field of Search dialogue
Sorry, you are right.white wrote: 2022-10-31, 15:15 UTCNo, it will not find "dir2 dir3"petermad wrote: 2022-10-31, 00:25 UTC but:will find "dir1", "dir2", "dir3", "dir1 dir2 dir3" and "dir2 dir3""Code: Select all
dir1 dir2 dir3.
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
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC10.52 (at least, maybe previous versions too] Multiple folders in 'Search For' field of Search dialogue
Indeed the rules are that
1. When there are spaces and dots, TC will look for both the individual names separated by the spaces, and for the entire name
2. TC always assumes a dot at the end of a file name. So
dir1 dir2 dir3.
will find
dir1 dir2 dir3
because a dot is just assumed at the end. This is necessary so wildcards like
name.*
will also find files without an extension.
1. When there are spaces and dots, TC will look for both the individual names separated by the spaces, and for the entire name
2. TC always assumes a dot at the end of a file name. So
dir1 dir2 dir3.
will find
dir1 dir2 dir3
because a dot is just assumed at the end. This is necessary so wildcards like
name.*
will also find files without an extension.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC10.52 (at least, maybe previous versions too] Multiple folders in 'Search For' field of Search dialogue
Thanks for the tips! II didn't know about this "dot" search mode.
Another question derived from this:
When searching for dirs with space-separated names (LFNs), does it work to search for the whole name to enclose these in double quotes?
Here I need to search for specific names or parts of names:
Dev
Photos
"11 Client POs"
-AYRS
Another question derived from this:
When searching for dirs with space-separated names (LFNs), does it work to search for the whole name to enclose these in double quotes?
Code: Select all
. Dev Photos "11 Client POs" -AYRS
Dev
Photos
"11 Client POs"
-AYRS
Regards,
Sergio
TCmd license #12059
TC11.03x86/x64 | Win11 Pro
Sergio
TCmd license #12059
TC11.03x86/x64 | Win11 Pro
Re: [TC10.52 (at least, maybe previous versions too] Multiple folders in 'Search For' field of Search dialogue
You must use:Helix751 wrote: 2022-11-04, 22:25 UTC Thanks for the tips! II didn't know about this "dot" search mode.
Another question derived from this:
When searching for dirs with space-separated names (LFNs), does it work to search for the whole name to enclose these in double quotes?
Here I need to search for specific names or parts of names:Code: Select all
. Dev Photos "11 Client POs" -AYRS
Dev
Photos
"11 Client POs"
-AYRS
Code: Select all
*Dev* *Photos* "*11 Client POs*" *-AYRS*
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