Multi Commander > Support and Feedback

Multiple item type search

(1/3) > >>

Ulfhednar:
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!).

Jungle:
I suppose you may use regexp like

--- Code: ---(dd\..*)|(.*\.aaa)|(.*\.bbb)
--- End code ---

Ulfhednar:
Good idea, I'll give it a shot.  :)

Mathias (Author):
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.



Ulfhednar:
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?

Navigation

[0] Message Index

[#] Next page

Go to full version