Searching for files that are images

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
skiwi
Posts: 1
Joined: Sun Mar 26, 2023 5:10 am

Searching for files that are images

Post by skiwi »

I saw the function type:<text>
I imagine that type:image would work
in a similar way that Windows Advanced Query Syntax works: e.g.kind:pics

How do I just get a list of images rather than all files?

thanks
void
Developer
Posts: 16749
Joined: Fri Oct 16, 2009 11:31 pm

Re: Searching for files that are images

Post by void »

Please try the pic: macro.

Include the following in your search:

pic:

-or-

Activate the Picture filter.
Filters can be activated from the Search menu, Filter bar (View -> Filters), right clicking the status bar, filter macro or filter keyboard shortcut.
Thy Grand Voidinesss
Posts: 691
Joined: Wed Jun 01, 2022 5:01 pm

Re: Searching for files that are images

Post by Thy Grand Voidinesss »

void wrote: Sun Mar 26, 2023 5:26 am [...]
search:

pic:
[...]
Where does this pic come from?

And are there others like it?

void wrote: Sun Mar 26, 2023 5:26 am Activate the Picture filter.
Here is are extended lists of graphical file formats: viewtopic.php?t=12994
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Searching for files that are images

Post by tuska »

Thy Grand Voidinesss wrote: Sun Mar 26, 2023 7:14 pm Where does this pic come from?
pic is the name of the macro for Picture.
See menu "Search" -> "Organize Filters..." -> Picture -> Edit
Thy Grand Voidinesss wrote: Sun Mar 26, 2023 7:14 pm And are there others like it?
Yes, there are other macros for filters, such as doc for Document, audio for Audio, etc.

In the "Edit Filter" window, everyone can add the file extensions they need themselves.
See also: Default filters for Everything 1.5
Thy Grand Voidinesss
Posts: 691
Joined: Wed Jun 01, 2022 5:01 pm

Re: Searching for files that are images

Post by Thy Grand Voidinesss »

tuska wrote: Sun Mar 26, 2023 8:48 pm [...]
there are other macros for filters, such as doc for Document, audio for Audio, etc.
[...]
But how is a user to know to have to use full "audio" for audio files and only "doc" for documents?

Where is the full list of those macros?
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Searching for files that are images

Post by tuska »

Thy Grand Voidinesss wrote: Sun Mar 26, 2023 8:59 pm
tuska wrote: Sun Mar 26, 2023 8:48 pm [...]
there are other macros for filters, such as doc for Document, audio for Audio, etc.
[...]
But how is a user to know to have to use full "audio" for audio files and only "doc" for documents?

Where is the full list of those macros?
Menu "Help" -> "Search Syntax" -> Macros:
Thy Grand Voidinesss
Posts: 691
Joined: Wed Jun 01, 2022 5:01 pm

Re: Searching for files that are images

Post by Thy Grand Voidinesss »

tuska wrote: Sun Mar 26, 2023 9:19 pm Menu "Help" -> "Search Syntax" -> Macros:
OK

So they are:

Code: Select all

audio:
doc:
exe:
pic:
video:
zip:
And I am guessing that they use the default extensions that come with each version of Everything? Or do they relay on some elements of the operating system like
Type
?
void
Developer
Posts: 16749
Joined: Fri Oct 16, 2009 11:31 pm

Re: Searching for files that are images

Post by void »

Filter macros are also listed under Search -> Organize Filters
Under the Macro column.

The macro text is replaced with the search from the filter.
For example, pic: is replaced with ext:ani;apng;bmp;bpg;cur;gif;ico;jfi;jfif;jif;jpe;jpeg;jpg;pcx;png;psb;psd;rle;svg;tga;tif;tiff;webp;wmf

The extensions are predefined by Everything.
They are not complete lists.
Only common extensions are included that web browsers handled.

You can customize your filters search to include other extensions under Search -> Organize Filters -> Select filter -> Edit...



There is a "kind" property in Everything where programs can system-wide associate an extension with a "kind".
For example, search for:
kind:picture
Program xyz might register .foo with a "kind" of picture.

Gathering kind information is slow, ext: lists or pic: will be instant.

Show the "Kind" column (right click the result list column header and click Add columns.... -> Search for kind) to view the kind value for each file/folder.



There is also a "Type" property in Everything.
Generally, this information is not really useful to find "pictures" as the field is usually set to something like: "My Image Program File"
Thy Grand Voidinesss
Posts: 691
Joined: Wed Jun 01, 2022 5:01 pm

Re: Searching for files that are images

Post by Thy Grand Voidinesss »

void wrote: Mon Mar 27, 2023 2:14 am [...]
There is a "kind" property in Everything where programs can system-wide associate an extension with a "kind".
For example, search for:
kind:picture
[...]
So my last question would be: where can one find the list of all possible kinds?
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Searching for files that are images

Post by tuska »

Thy Grand Voidinesss wrote: Mon Mar 27, 2023 11:14 am ... So my last question would be: where can one find the list of all possible kinds?
For queries in Everything using the Windows Search (parameter: si:), there is information here.
Thy Grand Voidinesss
Posts: 691
Joined: Wed Jun 01, 2022 5:01 pm

Re: Searching for files that are images

Post by Thy Grand Voidinesss »

This is very informative, thank you, I will save it offline for a future reference

And I guess that the irremovable "Everything" entry in Filter Bar under its hood utilizes "kind:everything"?
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Searching for files that are images

Post by tuska »

Thy Grand Voidinesss wrote: Mon Mar 27, 2023 3:51 pm And I guess that the irremovable "Everything" entry in Filter Bar under its hood utilizes "kind:everything"?
Mmh, I've never thought of it that way before.
For me, the filter 'Everything' remains a filter and nothing else.
void
Developer
Posts: 16749
Joined: Fri Oct 16, 2009 11:31 pm

Re: Searching for files that are images

Post by void »

Programs can register any "kind" they like.

Common "kinds" provided by the OS:
  • calendar
  • communication
  • contact
  • document
  • email
  • folder
  • searchfolder
  • link
  • music
  • picture
  • program
  • recordedtv
  • video
Files and folders can have multiple "kinds".


And I guess that the irremovable "Everything" entry in Filter Bar under its hood utilizes "kind:everything"?
No, gathering the system "Kind" information is slow.
Everything tries to use extensions where possible to make searching instant.

Internally, the Everything filter is an empty filter.
No filter is applied.
Post Reply