I post this here in advance because I need a name for the beast! "ad hoc color filters" is not really cutting it.
Here is the change log in its current state:
Code: Select all
+ Scripting got a new function.
Name: ColorFilter
Action: Activates one or more color filters in Tree and List.
Syntax: colorfilter([filters], [separator=||])
filters: Filter, or list of filters separated by separator.
If empty ("") any color filters are deactivated.
If missing the function just returns the currently active filters.
separator: Separator for list of filters.
return: Currently active filters.
Examples:
colorfilter("+lent:>12 //long filenames>BF6000,");
colorfilter("+len:>260 //overlong items>FFFFFF,FB4F04");
colorfilter("+dateM: dw 6-7 //last modified on a weekend>FFFFFF,B83E30");
colorfilter("+ageC d:d //folders created today>EEEEEE,4A97EC||+dir:xy*>FFFF00,FF8000");
colorfilter(""); //deactivate any color filter
text colorfilter(), 800; //return the currently active filters
Remarks:
- The color filter definition uses the full Color Filter syntax
including colors in RRGGBB and leading "+". You can see this
syntax in List Management | Color Filters, in Editor Mode (F6).
- If you activate a new filter, the old filter is replaced by it.
- If you activate the same filter again it is deactivated (toggle).
- The filter activated by this command are completely independent
of the Color Filters defined and enabled via Configuration. They
even work if the normal Color Filters are disabled.
- These color filters are not retained across sessions.
Usage:
These ad hoc color filters have a couple of advantages over the
normal color filters:
- You can quickly and individually turn them on/off without going
through Configuration.
- They are always processed on top of all other color filters, so
you always see all matches. Whereas in normal color filters it's
common that the first match covers any possible other matches
because usually only one color can be shown at the time for each
item (exception: Details view allows two colors simultaneously
per item under certain conditions).
- Because lists of filters are supported you can use this function
to toggle whole color schemes which would be very cumbersome to
do using the normal color filters.
- It's also easy to share color schemes between users via user
button snippets or included catalogs.
Good morning from Cologne by the way,
Don
XYplorer Beta Club