Is it possible to select multiple types in a search?
-
forgottenit
- Posts: 10
- Joined: 23 Jan 2016 20:40
Is it possible to select multiple types in a search?
Hi.
I am using version 145.30.0300. In the search feature, under name & location, you can specify image file or office file etc. Is it possible to select more than one of those?
I don't mean just searching for multiple specific extensions; after all 'office file' covers a shedload of extensions. How can I do that?
Many thanks
I am using version 145.30.0300. In the search feature, under name & location, you can specify image file or office file etc. Is it possible to select more than one of those?
I don't mean just searching for multiple specific extensions; after all 'office file' covers a shedload of extensions. How can I do that?
Many thanks
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Is it possible to select multiple types in a search?
Welcome to the forum.
Unfortunately, this isn't possible. It can be done e.g. via quicksearch but only in the current beta version (v16.20.0006)
Unfortunately, this isn't possible. It can be done e.g. via quicksearch but only in the current beta version (v16.20.0006)
One of my scripts helped you out? Please donate via Paypal
-
forgottenit
- Posts: 10
- Joined: 23 Jan 2016 20:40
Re: Is it possible to select multiple types in a search?
Ok I will check out the Beta. Thanks.
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Is it possible to select multiple types in a search?
For the record prior to v16.20.0006 you could accomplish this in an ugly convoluted way via quick search using:This works in the address bar and quick search dialog, but not in the Find Files tab (the variables are not resolved).
Since v16.20.0006 the same can be achieved using the new /types switch:
This also works well if you only want to search one of those filter types but want to include a few additional extensions as well:
Code: Select all
?query & (<get GenericFileType {:Audio} " | "> | <get GenericFileType {:Office} " | ">)Since v16.20.0006 the same can be achieved using the new /types switch:
Code: Select all
?query /types={:Audio};{:Office}Code: Select all
?query /types={:Office};jpg;png-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Is it possible to select multiple types in a search?
Not in my XY versionFurther, you can use this switch within the Name field of the Find Files tab.
The screenshot shows that you got the search result from a quick search, not by clicking on the "Find now" button (which will list practically everything instead of items of the used /types=....)
One of my scripts helped you out? Please donate via Paypal
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Is it possible to select multiple types in a search?
What screenshot?highend wrote:Not in my XY versionFurther, you can use this switch within the Name field of the Find Files tab.
The screenshot shows that you got the search result from a quick search, not by clicking on the "Find now" button (which will list practically everything instead of items of the used /types=....)
Indeed my test was flawed - I had clicked "Find Now" but didn't give it something to not find.
-
admin
- Site Admin
- Posts: 67264
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Is it possible to select multiple types in a search?
A bug!
The switch should work in Find Files just like in Quick Search, of course! Fix comes...
FAQ | XY News RSS | XY X
-
David.P
- Posts: 72
- Joined: 09 Dec 2006 11:21
Re: Is it possible to select multiple types in a search?
Hello all,
is this still not (easily) possible?
I'd like to search for *.doc and *.docx and *.txt files simultaneously if possible.
I tried this in the Name field of the Search dialog:
...but it didn't seem to work.
Thanks for ideas!
Edit: Oh wow it DOES work now. I had erroneously set the file size set to something very large.
So as usual, XYplorer simply ROCKS.
Thanks!
is this still not (easily) possible?
I'd like to search for *.doc and *.docx and *.txt files simultaneously if possible.
I tried this in the Name field of the Search dialog:
Code: Select all
*.doc | *.docx | *.txtThanks for ideas!
Edit: Oh wow it DOES work now. I had erroneously set the file size set to something very large.
So as usual, XYplorer simply ROCKS.
Thanks!
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Is it possible to select multiple types in a search?
Code: Select all
*.doc;*.docx;*.txtor an even shorter way (regex)
Code: Select all
>\.(docx?|txt)$One of my scripts helped you out? Please donate via Paypal
-
David.P
- Posts: 72
- Joined: 09 Dec 2006 11:21
Re: Is it possible to select multiple types in a search?
Thanks very much highend
-
OnlineRalphM
- Posts: 2143
- Joined: 27 Jan 2005 23:38
- Location: Cairns, Australia
Re: Is it possible to select multiple types in a search?
Shouldn't the regex rather be like this?
Code: Select all
>\.(doc?|txt)$Ralph 
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Is it possible to select multiple types in a search?
No, because that would search for .do, .doc and .txt
It's a regex, not a dos expression
It's a regex, not a dos expression
One of my scripts helped you out? Please donate via Paypal
-
David.P
- Posts: 72
- Joined: 09 Dec 2006 11:21
Re: Is it possible to select multiple types in a search?
Regexes are a case of Clarke's third law and people who can do them are magicians -- for me personally as a Regex dummie
-
OnlineRalphM
- Posts: 2143
- Joined: 27 Jan 2005 23:38
- Location: Cairns, Australia
Re: Is it possible to select multiple types in a search?
Okay, my bad. I crawl back under my regex stone.
Ralph 
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
XYplorer Beta Club