Date Color Filters
Date Color Filters
Erm.. Don, I'm surprised you went with a method that relies on static dates instead of one that allows relative time frames.
I would have imagined there'd be greater demand for coloring items that were modified today or yesterday, as opposed to items from/since 2008-01-01. And while that may be possible now, I really don't think modifying the filters every day is an acceptable solution.
Or is v9.70.0026 just the first of some incremental additions for date filters?
I would have imagined there'd be greater demand for coloring items that were modified today or yesterday, as opposed to items from/since 2008-01-01. And while that may be possible now, I really don't think modifying the filters every day is an acceptable solution.
Or is v9.70.0026 just the first of some incremental additions for date filters?
-
PeterH
- Posts: 2826
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Date Color Filters
I'm a bit irritated by the word "instead". I think absolute expressions are (also) good...TheQwerty wrote:Erm.. Don, I'm surprised you went with a method that relies on static dates instead of one that allows relative time frames.
...but it's right: relative expressions seem more useful! Like:
- today
- last 3 days
- last 33 hours
- and maybe "yesterday"?
-
admin
- Site Admin
- Posts: 65176
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Date Color Filters
You got it. I'm not finished yet... there are a lot of things yet to come...TheQwerty wrote:Or is v9.70.0026 just the first of some incremental additions for date filters?
FAQ | XY News RSS | XY X
Re: Date Color Filters
Good, that's what I was assuming, but you know what they say...admin wrote:You got it. I'm not finished yet... there are a lot of things yet to come...
Any chance we'll see a way to apply separate background & foreground patterns to items in v2?
For instance the majority of my color filters are changing the foreground color based on extension or attributes, but I'd like to be able to also change the background color based on size or date.
Maybe this could be done through a specific color switch on the pattern so one could have:
Code: Select all
/size: 0>continue,FF0000
desktop.ico;desktop.ini;Thumbs.db>FFAAAA,
New Textfile.txt>AAAAFF,553300But it would not apply any further matching background colors, so "New Textfile.txt" of 0 bytes would end up with colors "AAAAFF,FF0000" instead of the "AAAAFF,553300" that a 1 byte "New Textfile.txt" would have.
EDIT: I pulled these colors out of thin air, so no need to comment on how ugly the combination might be.
-
admin
- Site Admin
- Posts: 65176
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Date Color Filters
continue... hmm, nice idea... I'll check that...TheQwerty wrote:Maybe this could be done through a specific color switch on the pattern so one could have:The continue in the first item's foreground color would tell XY to keep processing filters until one is found that defines the foreground (or none are found), so "desktop.ini" of 0 bytes would end up with colors "FFAAAA,FF0000".Code: Select all
/size: 0>continue,FF0000 desktop.ico;desktop.ini;Thumbs.db>FFAAAA, New Textfile.txt>AAAAFF,553300
But it would not apply any further matching background colors, so "New Textfile.txt" of 0 bytes would end up with colors "AAAAFF,FF0000" instead of the "AAAAFF,553300" that a 1 byte "New Textfile.txt" would have.
EDIT: I pulled these colors out of thin air, so no need to comment on how ugly the combination might be.
FAQ | XY News RSS | XY X
Re: Date Color Filters
Just to note, I'm not sure continue is the best syntax to go with here... this wasn't a suggestion I'd thoroughly thought through.admin wrote:continue... hmm, nice idea... I'll check that...
Originally was thinking a switch at the end: "fore,back,c[ontinue]". Then thought making it a special color argument would prevent users from providing both colors with the switch enabled and wasting time tracking the unexpected results down or making XY search for another match.
I'd really prefer a descriptive word shorter than Continue but nothing is coming to mind. C by itself won't stand out enough since it's also a hex value, and I'm not sure Cont would be clear enough.
-
admin
- Site Admin
- Posts: 65176
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Date Color Filters
I give you time till tomorrow.TheQwerty wrote:Just to note, I'm not sure continue is the best syntax to go with here... this wasn't a suggestion I'd thoroughly thought through.admin wrote:continue... hmm, nice idea... I'll check that...
Originally was thinking a switch at the end: "fore,back,c[ontinue]". Then thought making it a special color argument would prevent users from providing both colors with the switch enabled and wasting time tracking the unexpected results down or making XY search for another match.
I'd really prefer a descriptive word shorter than Continue but nothing is coming to mind. C by itself won't stand out enough since it's also a hex value, and I'm not sure Cont would be clear enough.
FAQ | XY News RSS | XY X
-
PeterH
- Posts: 2826
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Date Color Filters
Just tested it a bit...
I wonder: color by filetype, for example, colors the whole matching line, while color by date only colors the name column - the rest of the line is simply un-colored. Why that?
But: could this lead to the solution for a problem I have? As, when coloring by different types (e.g. type and date), that with higher priority wins, while that with lower priority only functions on the poor rest of lines.
Wouldn't it be possible, especially for date-filtering, only to color the date-columns, *independent* from other coloring?
(The same *might* as well apply to other columns, like type or attribute.)
I think this would (at least a bit) resolve the multi-coloring TheQwerty is talking about.
I wonder: color by filetype, for example, colors the whole matching line, while color by date only colors the name column - the rest of the line is simply un-colored. Why that?
But: could this lead to the solution for a problem I have? As, when coloring by different types (e.g. type and date), that with higher priority wins, while that with lower priority only functions on the poor rest of lines.
Wouldn't it be possible, especially for date-filtering, only to color the date-columns, *independent* from other coloring?
(The same *might* as well apply to other columns, like type or attribute.)
I think this would (at least a bit) resolve the multi-coloring TheQwerty is talking about.
Re: Date Color Filters
Colors are nice, but how to use them? - How about the ability to use the same syntax in the selection menu - or maybe tag with a date argument - or just selection based on the color of the item(s) - that would be more useful than just pretty colors. I see you're not finished fiddling with dates and colors so maybe this sort of thing is already on the horizon, eh?
Re: Date Color Filters
Unfortunately this doesn't offer anything for the non-details views, so at least for me it wouldn't be that useful.PeterH wrote:Wouldn't it be possible, especially for date-filtering, only to color the date-columns, *independent* from other coloring?
(The same *might* as well apply to other columns, like type or attribute.)
I don't think I'm going to have a better solution so don't delay waiting for me.admin wrote:I give you time till tomorrow.
Something that has been on my mind for a while now is that it might be approaching time to bring some unity to the Color, Visual, Selection, File Type, and PFA filters. Just as the fact that so many places accepting scripts makes things a bit difficult to manage, I keep thinking that all of these features could be sharing at least some of their data and as a user it would be nice to consolidate the shared aspects into a single place that could be more easily managed.Joso wrote:Colors are nice, but how to use them? - How about the ability to use the same syntax in the selection menu - or maybe tag with a date argument - or just selection based on the color of the item(s)
Perhaps this is something that version 2 of Aliases could improve, I'm not sure, but it's worth considering.
-
admin
- Site Admin
- Posts: 65176
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Date Color Filters
Thanks for the input. Let's first see how the new color filters work in real life (before complicating them).
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 65176
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Date Color Filters
No, when a backcolor is defined then only colors the name column, else colors whole line.PeterH wrote:I wonder: color by filetype, for example, colors the whole matching line, while color by date only colors the name column - the rest of the line is simply un-colored. Why that?
FAQ | XY News RSS | XY X
Re: Date Color Filters
Hi
I'm using the color filters for age
I'm using several filters, e.g.
/ageM < 1 h
/ageM < 1 d
etc
by this order. It seems to work, but wouldn't be better to be able to use this kind of syntax:
/ageM < 1 d and ageM >= 6 h
I'm using the color filters for age
I'm using several filters, e.g.
/ageM < 1 h
/ageM < 1 d
etc
by this order. It seems to work, but wouldn't be better to be able to use this kind of syntax:
/ageM < 1 d and ageM >= 6 h
-
admin
- Site Admin
- Posts: 65176
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Date Color Filters
Boolean operators would make it more complex for me and for the users. I currently do not intend to go this way.jcmn wrote:Hi
I'm using the color filters for age
I'm using several filters, e.g.
/ageM < 1 h
/ageM < 1 d
etc
by this order. It seems to work, but wouldn't be better to be able to use this kind of syntax:
/ageM < 1 d and ageM >= 6 h
This might work for you:
/ageM 6 - 24 h
FAQ | XY News RSS | XY X
Re: Date Color Filters
Yes it's another way to express the ranges.This might work for you:
/ageM 6 - 24 h
XYplorer Beta Club