Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Suggestion: "In-depth" file search option

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) Printable version
View previous topic :: View next topic  
Author Message
Skleroz
Junior Member
Junior Member


Joined: 21 May 2012
Posts: 4

PostPosted: Mon May 21, 2012 5:14 am    Post subject: Suggestion: "In-depth" file search option Reply with quote

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
View user's profile Send private message
ts4242
Power Member
Power Member


Joined: 02 Feb 2004
Posts: 1501
Location: Egypt

PostPosted: Mon May 21, 2012 6:20 am    Post subject: Reply with quote

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

Is this what you need?
_________________
Author of Ultra TC Editors
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 4546
Location: Russian Federation

PostPosted: Mon May 21, 2012 7:33 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ts4242
Power Member
Power Member


Joined: 02 Feb 2004
Posts: 1501
Location: Egypt

PostPosted: Mon May 21, 2012 9:01 am    Post subject: Reply with quote

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 Rolling Eyes
_________________
Author of Ultra TC Editors
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skleroz
Junior Member
Junior Member


Joined: 21 May 2012
Posts: 4

PostPosted: Mon May 21, 2012 4:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
MaxX
Senior Member
Senior Member


Joined: 23 Mar 2012
Posts: 311

PostPosted: Mon May 21, 2012 5:20 pm    Post subject: Reply with quote

2Skleroz
That's useless to integrate in TC. The only way is to build a fs-plugin.
Back to top
View user's profile Send private message
Skleroz
Junior Member
Junior Member


Joined: 21 May 2012
Posts: 4

PostPosted: Mon May 21, 2012 5:34 pm    Post subject: Reply with quote

2MaxX
I think this is a useful feature Very Happy
Back to top
View user's profile Send private message
umbra
Power Member
Power Member


Joined: 14 Jan 2012
Posts: 668

PostPosted: Sun Jun 10, 2012 11:10 pm    Post subject: Reply with quote

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 Smile).

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
View user's profile Send private message Send e-mail
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 4546
Location: Russian Federation

PostPosted: Mon Jun 11, 2012 1:14 am    Post subject: Reply with quote

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.
_________________
VirtualPanel plugin: Temporary panel for TC (forum)
TOTALCMD.NET: TCFS2, NTLinks, CopyTree, AskParam, ConPaste, Sudo…
Back to top
View user's profile Send private message Send e-mail
Skleroz
Junior Member
Junior Member


Joined: 21 May 2012
Posts: 4

PostPosted: Tue Jun 12, 2012 11:50 pm    Post subject: Reply with quote

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 Smile

in-rus:
Для алгоритма поиска "в глубину" необязательно запоминать все ветки предыдущего уровня поиска.
Достаточно лишь производить поиск на нужном уровне.
Тем более, что windows успешно закэширует доступ к каталогам для предыдущего уровня поиска, т.е., тут даже париться не надо, просто немного доработать алгоритм поиска.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group