Color filter for last file in list

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
CutterKin
Posts: 13
Joined: 02 Jul 2017 19:32

Color filter for last file in list

Post 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!

highend
Posts: 14956
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Color filter for last file in list

Post 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!
One of my scripts helped you out? Please donate via Paypal

Post Reply