Sorting Files First + Precise File Type Sort

General discussion related to "Everything".
Post Reply
tech9
Posts: 7
Joined: Sun Apr 13, 2025 2:48 pm

Sorting Files First + Precise File Type Sort

Post by tech9 »

Can Everything be configured to display the search results as follows?:

1st: All matching Word docs.
2nd: All matching pdfs.
3rd: All matching folders.
4th: All etc.
void
Developer
Posts: 19053
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sorting Files First + Precise File Type Sort

Post by void »

Everything 1.4: No.

Everything 1.5: Yes, with some limitations using custom columns.

This is best done as a filter:
  • From the Search menu, click Add to filters...
    Change the Name to: docx/pdf/folders/other
    Change the Search to:

    Code: Select all

    <ext:docx;doc <#param:> a:=1> | <ext:pdf <#param:> a:=2> | <folder: <#param:> a:=3> | <<#param:> a:=4> sort:a-ascending
    
  • Click OK.
  • Activate your filter from the Search menu.
Notes:
The search can be a little slow.
Folders are currently always shown first.
Support for mixing files and folders when sorting by custom columns is on my TODO list.

Filters can be activated from the Search menu, Filter bar (View -> Filter Bar), Filter sidebar (View -> Filters), right clicking the status bar, filter macro or filter keyboard shortcut.

Filters can be organized from Search menu -> Organize filters.
tech9
Posts: 7
Joined: Sun Apr 13, 2025 2:48 pm

Re: Sorting Files First + Precise File Type Sort

Post by tech9 »

This is helpful. Thanks so much for the code.

But are you saying that there's currently no way at all to make the folders appear after other items?
void
Developer
Posts: 19053
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sorting Files First + Precise File Type Sort

Post by void »

But are you saying that there's currently no way at all to make the folders appear after other items?
No, not yet.
Everything has two separate databases for files and folders.
Combining them is expensive.

I have only added support for mixing files and folders when sorting by name, path, size and date modified. (where fast sorting is enabled)

Mix files and folders
tech9
Posts: 7
Joined: Sun Apr 13, 2025 2:48 pm

Re: Sorting Files First + Precise File Type Sort

Post by tech9 »

ok thanks again.
void
Developer
Posts: 19053
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sorting Files First + Precise File Type Sort

Post by void »

Not quite what you want, but I'm just making a note here:

Everything 1.5.0.1397a adds search functions to shows folders first or last.



To always show folders first, include the following in your search:

folders-first:




To always show folders last, include the following in your search:

folders-last:




To always show folders first when the sort is in ascending order, include the following in your search:

folders-first-ascending:




To always show folders first when the sort is in descending order, include the following in your search:

folders-first-descending:




folders-first:
folders-last:
folders-first-ascending:
folders-first-descending:
Post Reply