Suggestion: "In-depth" file search option
Moderators: white, Hacker, petermad, Stefan2
Suggestion: "In-depth" file search option
I do not always know how deep I search subdirectories.
First, I'm looking at the first level ("1 level(s)" option in "Find Files" dialog), next - at the second level, third level, etc... It's too long...
"In-depth" file search option would be convenient.
Thank you!
(translated by translate google com)
First, I'm looking at the first level ("1 level(s)" option in "Find Files" dialog), next - at the second level, third level, etc... It's too long...
"In-depth" file search option would be convenient.
Thank you!
(translated by translate google com)
folder look order with "All (unlimited depth)" option will be:
root
root/dir1
root/dir1/dir11
root/dir1/dir11/dir111
root/dir1/dir12
root/dir2/dir21
root/dir2/dir21/dir211
root/dir2/dir21/dir211/dir2111
root/dir2/dir21/dir212
I want this search order:
root
root/dir1
root/dir2
root/dir1/dir11
root/dir1/dir12
root/dir2/dir21
root/dir1/dir11/dir111
root/dir2/dir21/dir211
root/dir2/dir21/dir211/dir2111
root
root/dir1
root/dir1/dir11
root/dir1/dir11/dir111
root/dir1/dir12
root/dir2/dir21
root/dir2/dir21/dir211
root/dir2/dir21/dir211/dir2111
root/dir2/dir21/dir212
I want this search order:
root
root/dir1
root/dir2
root/dir1/dir11
root/dir1/dir12
root/dir2/dir21
root/dir1/dir11/dir111
root/dir2/dir21/dir211
root/dir2/dir21/dir211/dir2111
2Skleroz
That's useless to integrate in TC. The only way is to build a fs-plugin.
That's useless to integrate in TC. The only way is to build a fs-plugin.
Ukrainian Total Commander Translator. Feedback and discuss.
As a workaround, you can search using plugins:
Plugin: tc
Property: path
OP: regex
Value: ^d:\\currentdir(\\[^\\]*){2}$
Simply set the value to the path, where you want to start your search (d:\\currentdir) and change {2} accordingly - {1} for searching in that directory only (level 0), {2} for searching in that directory's direct subdirectories (level 1) an so on. Just don't forget to escape the path and enclose the regex value with ^ and $. For searching in nested directories too, remove the $.
Example: The search should start in dir "e:\dir1\dir2\" and one wants to search only in level 2 (relatively to that dir). Value: ^e:\\dir1\\dir2(\\[^\\]*){3}$
Example: The same as the previous one, except the level should be >=1. Value: ^e:\\dir1\\dir2(\\[^\\]*){2}
It's not as pretty as selecting a value from ComboBox, but it works (at least I think so ).
edit: regex rewritten to a nicer version
Plugin: tc
Property: path
OP: regex
Value: ^d:\\currentdir(\\[^\\]*){2}$
Simply set the value to the path, where you want to start your search (d:\\currentdir) and change {2} accordingly - {1} for searching in that directory only (level 0), {2} for searching in that directory's direct subdirectories (level 1) an so on. Just don't forget to escape the path and enclose the regex value with ^ and $. For searching in nested directories too, remove the $.
Example: The search should start in dir "e:\dir1\dir2\" and one wants to search only in level 2 (relatively to that dir). Value: ^e:\\dir1\\dir2(\\[^\\]*){3}$
Example: The same as the previous one, except the level should be >=1. Value: ^e:\\dir1\\dir2(\\[^\\]*){2}
It's not as pretty as selecting a value from ComboBox, but it works (at least I think so ).
edit: regex rewritten to a nicer version
Last edited by umbra on 2012-06-11, 10:43 UTC, edited 1 time in total.
Windows 7 Pro x64, Windows 10 Pro x64
I think, for in-depth search algorithm, not necessary keep directory branches from previous level search.MVV wrote:TC will need to reenum all previously processed files anyway. So I think it will be faster to just increase search depth in main tab for every next search.
Anyway, in-depth searching would require to keep too much temporary data.
All needed temporary data stored in the windows file system cache
in-rus:
Для алгоритма поиска "в глубину" необязательно запоминать все ветки предыдущего уровня поиска.
Достаточно лишь производить поиск на нужном уровне.
Тем более, что windows успешно закэширует доступ к каталогам для предыдущего уровня поиска, т.е., тут даже париться не надо, просто немного доработать алгоритм поиска.
If you don't know where in the tree is the file you are searching for (it may be e.g. 7 subfolders deep) you may have to start many searches manually. If TC had the possibility to change the order of searched subfolders the way Skleroz suggested, it would be a great help in these situations.MVV wrote:TC will need to reenum all previously processed files anyway. So I think it will be faster to just increase search depth in main tab for every next search.
Anyway, in-depth searching would require to keep too much temporary data.