new files - different color / marked?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
alxdvc
Posts: 45
Joined: 14 Jun 2015 11:02

new files - different color / marked?

Post by alxdvc »

hi all
is there a way to have new files with a different color, or highlighter or marked, when they get placed in a given directory?
ideally with a timeframe, like, all new files names within the past xx hours, to be colored /underlined?
thank you
alex

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: new files - different color / marked?

Post by highend »

For files inside a folder? Don't know if this can be done by a (simple) colorfilter so use a custom column...

Don't forget to use "Icon" for the "Format" entry for the cc, otherwise you won't see anything^^
E.g.:

Code: Select all

// Create bars for files with different age(s)
      $created = property("#date.c", <cc_item>);
      $diff    = datediff($created, , "h"); // Difference in hours!
      if     ($diff <= 1)  { return '>draw.bar, 100, F6AB46, F6AB46'; } // Orange
      elseif ($diff <= 24) { return '>draw.bar, 100, E29CDC, E29CDC'; } // Purple
One of my scripts helped you out? Please donate via Paypal

alxdvc
Posts: 45
Joined: 14 Jun 2015 11:02

Re: new files - different color / marked?

Post by alxdvc »

thank you highend, but how do I use that code that you suggested me? sorry I am not a developer, i'd need to know step by step how to create this filer for new files, nothing for granted, thank you :)

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: new files - different color / marked?

Post by highend »

It's in the help file, custom columns
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 3575
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: new files - different color / marked?

Post by jupe »

A few of the default ICF Power Filters will shade colors by created time, (and can be used as a base to customize, eg hours only):

2022-03-20_155443.png

The help file unsurprisingly expands on how you can create these ICF entries yourself.
To see the attached files, you need to log into the forum.

Post Reply