| View previous topic :: View next topic |
| Author |
Message |
Skleroz Junior Member

Joined: 21 May 2012 Posts: 4
|
Posted: Mon May 21, 2012 5:14 am Post subject: 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) |
|
| Back to top |
|
 |
ts4242 Power Member


Joined: 02 Feb 2004 Posts: 1501 Location: Egypt
|
Posted: Mon May 21, 2012 6:20 am Post subject: |
|
|
The first option in the list is "all (unlimited depth)"
Is this what you need? _________________ █████ Author of Ultra TC Editors
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ |
|
| Back to top |
|
 |
MVV Power Member


Joined: 03 Aug 2008 Posts: 4546 Location: Russian Federation
|
Posted: Mon May 21, 2012 7:33 am Post subject: |
|
|
ts4242, he wants to change folder look order from dir1, dir1\dir11, dir2, dir3, dir3\dir33 to dir1, dir2, dir3, dir1\dir11, dir3\dir33. _________________ VirtualPanel plugin: Temporary panel for TC (forum)
TOTALCMD.NET: TCFS2, NTLinks, CopyTree, AskParam, ConPaste, Sudo… |
|
| Back to top |
|
 |
ts4242 Power Member


Joined: 02 Feb 2004 Posts: 1501 Location: Egypt
|
Posted: Mon May 21, 2012 9:01 am Post subject: |
|
|
| 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  _________________ █████ Author of Ultra TC Editors
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ |
|
| Back to top |
|
 |
Skleroz Junior Member

Joined: 21 May 2012 Posts: 4
|
Posted: Mon May 21, 2012 4:23 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
MaxX Senior Member


Joined: 23 Mar 2012 Posts: 311
|
Posted: Mon May 21, 2012 5:20 pm Post subject: |
|
|
2Skleroz
That's useless to integrate in TC. The only way is to build a fs-plugin. |
|
| Back to top |
|
 |
Skleroz Junior Member

Joined: 21 May 2012 Posts: 4
|
Posted: Mon May 21, 2012 5:34 pm Post subject: |
|
|
2MaxX
I think this is a useful feature  |
|
| Back to top |
|
 |
umbra Power Member

Joined: 14 Jan 2012 Posts: 668
|
Posted: Sun Jun 10, 2012 11:10 pm Post subject: |
|
|
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 _________________ Windows 7 Pro x64, Windows 8 Pro x64
Last edited by umbra on Mon Jun 11, 2012 4:43 am; edited 1 time in total |
|
| Back to top |
|
 |
MVV Power Member


Joined: 03 Aug 2008 Posts: 4546 Location: Russian Federation
|
|
| Back to top |
|
 |
Skleroz Junior Member

Joined: 21 May 2012 Posts: 4
|
Posted: Tue Jun 12, 2012 11:50 pm Post subject: |
|
|
| 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 успешно закэширует доступ к каталогам для предыдущего уровня поиска, т.е., тут даже париться не надо, просто немного доработать алгоритм поиска. |
|
| Back to top |
|
 |
|