18.07.24 Added: Search for *.ext test1\test2\ (no backslash at the beginning) will now find files *.ext in directory test1\test2 (in addition to current directory) any levels deep, e.g. c:\startdir\test3\test4\test1\test2\somefile.ext (32/64)
15.07.24 Fixed: Searching for \*\*\ will now find files in the current directory plus those two levels deeper (32/64)
There are bugs, but I first want to discuss the way you implemented this. You disregarded my suggestion to also include subfolders when using an include mask. I will again make my case using a different wording.
When you use search in Total Commander, it defaults to searching in the current folder and all its subfolders.
You can limit the search in its subfolders by using include masks and exclude masks.
When using an exclude mask and specify 1 specific folder, it will exclude that subfolder and all its subfolders.
When using an include mask:
- My suggestion is: When using an include mask and specify 1 specific folder, it will only include that subfolder and all its subfolders.
- Your implementation is: When using an include mask and specify 1 specific folder, it will only include that subfolder but not its subfolders.
I think my suggestion is generally more useful, more intuitive, and more consistent because TC defaults to searching in the current folder and all its subfolders.
My suggestion would require an extra exclude mask if you would not like the subfolders to be included as well.
Your suggestion would require the use of a solution like \**\ to include the subfolders as well.
Examples:
Code: Select all
Search for: totalcmd\
Search in: c:\
Suppose there is only 1 folder named "totalcmd" on drive c: and that is the program folder of Total Commander.
- My suggestion is that the example code would find, in addition to all files in the root folder c:, all files/folders of TC's program folder and all its subfolders.
- Your implementation finds, in addition to all files in root folder of c:, only the files/folders of TC's program folder but not its subfolders.
Bug descriptions.
In Windows Sandbox, I installed Total Commander in the default folder (c:\Program Files\totalcmd\).
I search in "c:\" for the following searches:
Works as the way it is implemented now.
The contents of the totalcmd folder is not found.
The contents of the totalcmd folder is not found.
Works.
Does not work.
More complicated examples also fail, but that may be caused by the same thing. It is probably better to fix this first and see if that solves all the problems.