Multi Commander Support Forum

Multi Commander => Support and Feedback => Topic started by: Ulfhednar on November 10, 2013, 12:44:03

Title: Multiple item type search
Post by: Ulfhednar on November 10, 2013, 12:44:03
Can I create a search for multiple object types?
eg -  if I want to find several files where wildcards don't cover the range.
*.aaa
*.bbb
dd.*
etc
This would be a multi-pass search series in normal circumstances. 
Wondering if I can script a button to make a search run (using something like ; to divide terms) that returns a number of different results as above.   The collective result with all the search hits would be output to the find dialog.

Maybe a filter selection that shows results within nested folders would do the same, if I could figure out how to do that. (if it is possible!).
Title: Re: Multiple item type search
Post by: Jungle on November 10, 2013, 13:53:15
I suppose you may use regexp like
Code: [Select]
(dd\..*)|(.*\.aaa)|(.*\.bbb)
Title: Re: Multiple item type search
Post by: Ulfhednar on November 10, 2013, 14:26:12
Good idea, I'll give it a shot.  :)
Title: Re: Multiple item type search
Post by: Mathias (Author) on November 10, 2013, 18:48:37
Not sure I understand that the problem is.
You can type "*.aaa *.bbb dd.*" in the "Look for" field in search.
and it will be a match if any of them matches.



Title: Re: Multiple item type search
Post by: Ulfhednar on November 10, 2013, 18:59:17
Thanks Mathias the ""s around every term was what I had missed, I'd put it only at the ends... ::)

UPDATE
Hmmm maybe not entirely my brain after all - I'm  making a button & when using MC.FileSearch.Search the ""s are trimmed & only the 1st term is retained in the dialog.    Everything else is discarded. 
eg - "aaa.*" "*.ddd" "*.sss" - in the button script becomes - aaa.* in the search dialog that appears.

Also wondered can you add size parameters to the MC.FileSearch.Search command Options?
Title: Re: Multiple item type search
Post by: Mathias (Author) on November 10, 2013, 19:28:22
No the size parts can not be set from script yet.

No, quotes are not need.  I can type "aaa.* *.ddd *.sss" in the look for field. and that should work.

Title: Re: Multiple item type search
Post by: Ulfhednar on November 10, 2013, 22:58:13
OK.  Another request on your list then   ;)

I have got it to work now.  Not exactly sure what I changed, I put it back to my original entry & it found the files.  Previously it would show the multiple entries in the search field but wouldn't find them...  ???  Guess it must've been a typo? 

Thanks for the assistance.  :)
Title: Re: Multiple item type search
Post by: Ulfhednar on November 11, 2013, 14:36:32
Having shut down the PC last night & restarted the PC today, I find that having had all terms found yesterday, now only 3 of the 4 test files are found.  Nothing changed just a restart ...  My fake folder & fake files are all still there.  :o
Clearing the fields & pasting in the term, or typing the term in manually, brings the 4th file type up OK, but my button won't.

Maybe there is some sort of bug here that would explain why it didn't work at all at first & now drops a component from the string list?   ???
W7x64, MC 1.8 b3490 x64 build
Title: Re: Multiple item type search
Post by: Mathias (Author) on November 11, 2013, 15:21:46
Fake folder ?
You get items that are shown in search result but the files/folders do not exists on disk ?

Title: Re: Multiple item type search
Post by: Ulfhednar on November 11, 2013, 19:38:56
Sorry I mean fake as in 0 bytes 'dummy' objects - just empty files & folders with names & extensions that I was using to test the search terms.  :P
Title: Re: Multiple item type search
Post by: Ulfhednar on November 15, 2013, 12:34:31
I have found the problem with my button/search terms.  Some of the files I am looking for have bad date stamps. 
eg - camera hadn't been set up correctly & defaulted to a date of 1980 (long before it was actually made) !!   :o

My search thus would only find some of the items with correct timestamps, if there were any. 

 
Title: Re: Multiple item type search
Post by: Mathias (Author) on November 15, 2013, 12:46:19
Maybe this tool might be useful

Menu > Tools > Picture Tools > Adjust EXIF Date Information
Title: Re: Multiple item type search
Post by: Ulfhednar on November 16, 2013, 19:24:26
Thanks Mathias I'll give it a go.   ;)