Page 1 of 1
Color filter for last file in list
Posted: 04 Nov 2022 18:06
by CutterKin
Is there any way to create a color filter that affects only the last file in the list?
I'd like a filter to highlight the last and only the last file in the list, regardless if the files are sorted by name, date, size or whatever.
That it. Any help would be appreciated, thanks!
Re: Color filter for last file in list
Posted: 04 Nov 2022 18:35
by highend
That's not possible.
The only way to do something like this is a script that would need to be executed manually whenever you want to highlight the last item, e.g.:
Code: Select all
perm $P_LAST_HIGHLIGHTED;
$labelColor = "Orange";
$lastItem = gettoken(listpane(, , , <crlf>), -1, <crlf>);
if (!$P_LAST_HIGHLIGHTED) {
$P_LAST_HIGHLIGHTED = $lastItem;
tagitems("lbl", $labelColor, $lastItem);
} elseif ($P_LAST_HIGHLIGHTED != $lastItem) {
tagitems("lbl", "", $P_LAST_HIGHLIGHTED);
tagitems("lbl", $labelColor, $lastItem);
$P_LAST_HIGHLIGHTED = $lastItem;
}
Configuration | General | Refresh, Icons, History | Scripting | [x] Remember permanent variables
must be checked!