Special way to display file grouping

Plug-in and third party software discussion.
Post Reply
horst.epp
Posts: 1642
Joined: Fri Apr 04, 2014 3:24 pm

Special way to display file grouping

Post by horst.epp »

The following request is from the Total commander forum.
I have no idea if such a sort can currently be created by Everything
without relying on external scripts.

The request:
-Files that are newer than X days (for example, modified in the last 3 days) should always appear at the top of the file list.
-After those, all remaining files should follow the normal sorting order currently selected (by name, extension, size, date, etc.).
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: Special way to display file grouping

Post by NotNull »

For example:

Code: Select all

<<dm:<=3days A:=dm:>|>  sort:A-descending;path
Items changed in the last 3 days will be sorted by (descending) date. All others items come next and will be sorted by path.

dm:<=3days A:=dm:
==> for all items with a date modified that has changed in the last 3 days, make A equal to its date-modified value.
Note the OR ("
|
") without any further specification. This adds all other items while leaving their A value empty.

sort:A-descending;path
==>
Primary sort = value for A (= date modified for the newest items; empty for the others). Newest first.
Secondary sort = by path.
horst.epp
Posts: 1642
Joined: Fri Apr 04, 2014 3:24 pm

Re: Special way to display file grouping

Post by horst.epp »

Thanks, that works.
I made a suggestion based on your code in the TC forum and a link to this post.
https://www.ghisler.ch/board/viewtopic. ... 88#p476988
Post Reply