Page 1 of 1

Suggestion: "In-depth" file search option

Posted: 2012-05-21, 11:14 UTC
by Skleroz
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)

Posted: 2012-05-21, 12:20 UTC
by ts4242
The first option in the list is "all (unlimited depth)"

Is this what you need?

Posted: 2012-05-21, 13:33 UTC
by MVV
ts4242, he wants to change folder look order from dir1, dir1\dir11, dir2, dir3, dir3\dir33 to dir1, dir2, dir3, dir1\dir11, dir3\dir33.

Posted: 2012-05-21, 15:01 UTC
by ts4242
MVV wrote:ts4242, he wants to change folder look order from dir1, dir1\dir11, dir2, dir3, dir3\dir33 to dir1, dir2, dir3, dir1\dir11, dir3\dir33.
Still not understand :roll:

Posted: 2012-05-21, 22:23 UTC
by Skleroz
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

Posted: 2012-05-21, 23:20 UTC
by MaxX
2Skleroz
That's useless to integrate in TC. The only way is to build a fs-plugin.

Posted: 2012-05-21, 23:34 UTC
by Skleroz
2MaxX
I think this is a useful feature :D

Posted: 2012-06-11, 05:10 UTC
by umbra
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

Posted: 2012-06-11, 07:14 UTC
by MVV
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.

Posted: 2012-06-13, 05:50 UTC
by Skleroz
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.
I think, for in-depth search algorithm, not necessary keep directory branches from previous level search.
All needed temporary data stored in the windows file system cache :)

in-rus:
Для алгоритма поиска "в глубину" необязательно запоминать все ветки предыдущего уровня поиска.
Достаточно лишь производить поиск на нужном уровне.
Тем более, что windows успешно закэширует доступ к каталогам для предыдущего уровня поиска, т.е., тут даже париться не надо, просто немного доработать алгоритм поиска.

Posted: 2017-03-30, 09:15 UTC
by dami
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.
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.