Hello,
How to use the Filter Bar to search for file names that contain two or more strings?
Example:
I want to find file names that contain the strings animal
and set
and bw
etc. Regardless of the strings order.
Thanks
Hello,
How to use the Filter Bar to search for file names that contain two or more strings?
Example:
I want to find file names that contain the strings animal
and set
and bw
etc. Regardless of the strings order.
Thanks
(animal|set|bw)
Pipe "|" means or.
I want and, not or.
Any idea?
Oops, my mistake.
Would be somewhat of a hassle for filter bar because you would need to type in every variation of the words such as...
(*animal*set*bw*|*set*bw*animal*|*bw*animal*set*)
etc.
Why not use advanced selection?
and check "Hide items that don't match"
Thanks for the help yonder.
There must be a better way to do this. Maybe a regex?
There is no easy way to do this. Several threads deal with this issue I think. I'd love to see an "internet search engine" style of filter bar, where you could just enter all the words you are looking for, prefix some words with "+" to make them "must finds" and use "-" to "must not finds". No need for the wildcard/pattern/regex hassle at all.
This may be a special mode the filter bar could switch into if this does not mix well with how things work now.
@yonder
Your recombination of words to build a wildcard pattern and simulating the "and" operator is a nice idea.
Some script could be helpful to build these patterns automatically, typing them by hand is no option of course. o)
You could have a script that prompts for a string, then shows or hides things based on it.
Not as nice as using the filter bar, but quicker/easier than using Find/Advanced, if it's something you need to do often.
This is a quick and dirty, I mean really quick and really dirty script button which picks up @yonder's idea and auto-generates some kind of patterned permutation in the filter bar for all the words entered on the fly. So the text field in the simple dialog the script button offers works very similar to the actual filter bar field.
There's lots more to be done on this and there may be some unseen drawbacks as well. I just wanted to try very quickly whether the new dialog system in DO 12 would come in handy here. Turns out it does! o) Thanks to Yonder and Leo for the quick help on the freezing problem before I moved on.. o)
ISEFilter.dcf (14.5 KB)
Nice piece of work @tbone. I for one will find this very useful.
@tbone,
This will help until DO developers implement this function.
If you make a separate thread for this button please post a link here.
Thanks.
I use this a lot. Since I often want to reverse the filter I have added capability to toggle NOT on/off against the current on-the-fly filter. Here is the tweaked button for anyone else who might find it useful.
ISE Filter with NOT toggle.dcf (15.6 KB)
This should be an easy to code and have it as a built-in feature.