It's a nice idea, but unfortunately those are all selectors not variables - meaning it's not possible today with just color filters.
HOWEVER...

There are two possible alternatives.
1: The Temporary Instant Color Filter
Whenever you want to see which files have matching dates you run a script which figures it out and applies an instant color filter:
Code: Select all
"ICF: Created == Modified"
// The colors to use.
$backColor = 'AA2211';
$foreColor = '';
// Date pattern to compare - this allows you to control the precision.
$pattern = 'yyyymmddhhnnss';
// Get the information for all items in the list.
$ret = Report("{Created $pattern}|{Modified $pattern}|{Fullname}<crlf>", 0);
// It might be better to limit it to the selection,
// or retrieve the dates within the loop; I'm not sure.
// List of items that qualify for free healt.. er highlighting.
$matchList = '';
foreach ($item, $ret, "<crlf>") {
if ($item == '') { continue; }
$c = GetToken($item, 1, '|');
$m = GetToken($item, 2, '|');
if ($c == $m) {
if ($matchList != '') { $matchList = $matchList . ';'; }
$matchList = $matchList . GetToken($item, 3, '|');
}
}
if ($matchList != '') {
// Color the matching items.
// With heredoc you can insert other ICFs you want to also apply.
colorfilter(<<<#ICF
"Created == Modified" $matchList>$foreColor,$backColor
#ICF
, "<crlf>");
}
2: Automagical Tagging with Custom Columns
If you:
1) Don't mind having an always present scripted custom column visible or the impact in speed/responsiveness it causes.
2) Don't mind tagging files whose dates match and your tag.dat file growing as a result.
Then you can use a custom column to automatically tag files whose dates match and then apply a color filter for items with that tag.
Something like this should work to tag items:
For extra style points place it between the Created & Modified columns in details view.Code: Select all
// Permanent Variable - On/Off Switch
// Set either permanent variable to true to abort early.
// This is useful for temporarily disabling one or all custom columns.
if ($P_CC_DISABLE_ALL || $P_CC_DISABLE_CISM) {
return 'off';
}
// ---------- Settings
// Date pattern to compare - this allows you to control the precision.
$pattern = 'yyyymmddhhnnss';
// Tag for items with matching date patterns.
$tagValue = 'datesMatch';
// ----------
// Item we're working on.
$item = <cc_item>;
// Create a small 'script' to compare the dates.
$ret = report("'{Created $pattern}' == '{Modified $pattern}'", $item);
if (eval($ret)) {
// If Dates match - tag item.
tag $tagValue, $item, 1, 0;
return '==';
} elseif ((', ' . property('#tags', $item) . ',') LikeI "*, $tagValue,*") {
// If item was previously tagged - remove it now.
tag $tagValue, $item, 1, 2;
}
return '!=';
Snippet:Code: Select all
Snip: CustomColumn 1
XYplorer 14.80.0004, 1/8/2015 9:43:12 AM
Action
ConfigureColumn
Caption
C is M
Type
3
Definition
// Permanent Variable - On/Off Switch
// Set either permanent variable to true to abort early.
// This is useful for temporarily disabling one or all custom columns.
if ($P_CC_DISABLE_ALL || $P_CC_DISABLE_CISM) {
return 'off';
}
// ---------- Settings
// Date pattern to compare - this allows you to control the precision.
$pattern = 'yyyymmddhhnnss';
// Tag for items with matching date patterns.
$tagValue = 'datesMatch';
// ----------
// Item we're working on.
$item = <cc_item>;
// Create a small 'script' to compare the dates.
$ret = report("'{Created $pattern}' == '{Modified $pattern}'", $item);
if (eval($ret)) {
// If Dates match - tag item.
tag $tagValue, $item, 1, 0;
return '==';
} elseif ((', ' . property('#tags', $item) . ',') LikeI "*, $tagValue,*") {
// If item was previously tagged - remove it now.
tag $tagValue, $item, 1, 2;
}
return '!=';
Format
0
Trigger
1
Item Type
0
Item Filter
[/size]
On listing files this will add or remove the 'datesMatch' tag to any files whose created and modified times match (down to the second) and remove it if they don't match.
Then you just need to add in a color filter with selector:
Keep in mind this is an ugly hack and will cause some slowness at times - especially on network locations - so you may want to use the permanent variables mentioned in the script to disable/toggle using the column.