How can i make certain file types show up first in search results?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
paulo312
Posts: 1
Joined: Tue Mar 29, 2022 3:28 pm

How can i make certain file types show up first in search results?

Post by paulo312 »

I want .exe to show up first, then everything else, how can i do this?
meteorquake
Posts: 503
Joined: Thu Dec 15, 2016 9:44 pm

Re: How can i make certain file types show up first in search results?

Post by meteorquake »

I supposed this can be generalised by being able to specify specific extensions as having a sort-as value, for example if png were given a sort as value of "jpg" it would extension-order-sort to be intermingled with the jpg files, or if jpgp would sort after them. avi might likewise be given the code mp4 to fall with them. For exe to be at the front I suppose in this scenario it could be give the code 0 or something at the start of the alphabet...
d
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: How can i make certain file types show up first in search results?

Post by raccoon »

sort:type
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: How can i make certain file types show up first in search results?

Post by void »

Consider using the Run Count property and sorting by Run Count:
  • In Everything, type in the following search:
    *.exe
  • Select all files (Ctrl + A)
  • From the File menu, click Set Run Count....
  • Change Run Count to a high number (eg: 1000)
  • Click OK.
  • Right click the result list column header and check Run Count.
  • Click the Run Count column header to sort by run count.
I will consider a 'rank' sort that can be customized.
Thank you for the suggestion.
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: How can i make certain file types show up first in search results?

Post by void »

Everything 1.5a has the following search:

regex:\.(exe)$ | nohighlight:regex:.* sort:regmatch1-descending;name-ascending

To create a filter to sort by exe first:
  • In Everything 1.5, from the Search menu, click Add to Filters....
  • Change the Name to:
    EXE First
  • Change the Search to:
    regex:\.(exe)$ | nohighlight:regex:.* sort:regmatch1-descending;name-ascending
  • Click OK.
Filters can be activated from the Search menu, Filter bar (View -> Filters), right clicking the status bar, filter macro or filter keyboard shortcut.
TheCrusty
Posts: 4
Joined: Wed Jun 15, 2022 6:06 pm

Re: How can i make certain file types show up first in search results?

Post by TheCrusty »

Can we adjust this Regex to a sequence of parameters like

regex:\.(exe docx xlsx *)$ | nohighlight:regex:.* sort:regmatch1-descending;date-descending

or something like that?
TheCrusty
Posts: 4
Joined: Wed Jun 15, 2022 6:06 pm

Re: How can i make certain file types show up first in search results?

Post by TheCrusty »

This regex can be adjusted to be possible to order a sequence of extesions? like


regex:\.(exe docx xlsx *)$ | nohighlight:regex:.* sort:regmatch1-descending;date-descending

I'm using the operators sequence OR > AND
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: How can i make certain file types show up first in search results?

Post by void »

Please try:

Code: Select all

file:regex:\.(exe|docx|xlsx)$ | nohighlight:regex:.* sort:regmatch1-descending;date-descending
However, this sorts by extension.
I'll look into adding a way to mix the extensions.
Post Reply