Date Color Filters

Features wanted...
TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Date Color Filters

Post by TheQwerty »

Does this work as you desire?

Code: Select all

+ageC:<=6 h //m|>,FF0000
+ageC:<=24 h //m|>,00FF00
+ageC:<=48 h // m|>,000FF
In List Management Editor format

eil
Posts: 1825
Joined: 13 Jan 2011 19:44

Re: Date Color Filters

Post by eil »

TheQwerty wrote:Does this work as you desire?

Code: Select all

+ageC:<=6 h //m|>,FF0000
+ageC:<=24 h //m|>,00FF00
+ageC:<=48 h // m|>,000FF
In List Management Editor format
seems yes. i've forgotten about order and "top in list" priority. :oops:
one more question: how to specify a certain time period(not in dates)?
example: there is some filter coloring files created in last 6 hour, there is another for 6-12 hours, and i need another one that colors only those to be created 10-11 hours ago.
as i understand, your example works as "if filters above have nothing to do with files, filter below colors them" = if there was no filter for 6 hours above, filter for 24 would colorize all those created within last 24h.
Win 7 SP1 x64 100% 1366x768|1900x1080

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Date Color Filters

Post by TheQwerty »

eil wrote:example: there is some filter coloring files created in last 6 hour, there is another for 6-12 hours, and i need another one that colors only those to be created 10-11 hours ago.
as i understand, your example works as "if filters above have nothing to do with files, filter below colors them" = if there was no filter for 6 hours above, filter for 24 would colorize all those created within last 24h.
I'm not sure I understand completely, but if I do I think you have two options:

Duplicate entries:

Code: Select all

+ageC:<=6 h //m|>,FF0000
+ageC:<10 h //m|>,0000FF
+ageC:<=11 h //m|>,00FF00
+ageC:<=12 h //m|>,0000FF
Use logic:

Code: Select all

+ageC:<=6 h //m|>,FF0000
+ageC:>=10 h AND ageC:<=11 h //m|>,00FF00
+ageC:<=12 h // m|>,000FF
In List Management Editor format

eil
Posts: 1825
Joined: 13 Jan 2011 19:44

Re: Date Color Filters

Post by eil »

2nd is more comfortable. thanks. :)
Win 7 SP1 x64 100% 1366x768|1900x1080

admin
Site Admin
Posts: 65176
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Date Color Filters

Post by admin »

admin wrote:Tip (undocumented feature) (copied from List Management to show the colors):

Code: Select all

attr:s//m|>,FFFF80
m in the comment part is the merge switch. This example will set a light yellow background color to all items with SYSTEM attribute, and use the text color of the next matching color filter that has only a text color defined. (This is what TheQwerty wished as "continue".)
Ha, finally (1.5 years later) added this to the Help. :mrgreen:

Post Reply