Suggestion: "In-depth" file search option

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Skleroz
Junior Member
Junior Member
Posts: 4
Joined: 2012-05-21, 10:50 UTC

Suggestion: "In-depth" file search option

Post 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)
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

The first option in the list is "all (unlimited depth)"

Is this what you need?
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post 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.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post 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:
Skleroz
Junior Member
Junior Member
Posts: 4
Joined: 2012-05-21, 10:50 UTC

Post 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
User avatar
MaxX
Power Member
Power Member
Posts: 1024
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2Skleroz
That's useless to integrate in TC. The only way is to build a fs-plugin.
Ukrainian Total Commander Translator. Feedback and discuss.
Skleroz
Junior Member
Junior Member
Posts: 4
Joined: 2012-05-21, 10:50 UTC

Post by *Skleroz »

2MaxX
I think this is a useful feature :D
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Post 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
Last edited by umbra on 2012-06-11, 10:43 UTC, edited 1 time in total.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post 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.
Skleroz
Junior Member
Junior Member
Posts: 4
Joined: 2012-05-21, 10:50 UTC

Post 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 успешно закэширует доступ к каталогам для предыдущего уровня поиска, т.е., тут даже париться не надо, просто немного доработать алгоритм поиска.
dami
Junior Member
Junior Member
Posts: 7
Joined: 2013-01-03, 14:21 UTC

Post 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.
Post Reply