help with color filter for all tagged files

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
fogg
Posts: 32
Joined: 15 Jul 2014 16:13
Location: Going around the World

help with color filter for all tagged files

Post by fogg »

Hello again!
I don't use tags often, but when I do so, I want to be able to identify the tagged files quickly while browsing.
So to a have a standing-out background color for all tagged items, I created this color filter in the configuration window:

Code: Select all

prop:tag:*
I only used the "back" button to change the BG color.
But I had a great surprise. As a result of the filter, all files except read-only files are displayed with this color!
Please help.
s404:signature not found.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: help with color filter for all tagged files

Post by bdeshi »

Did you make a few typos while posting? the correct format is prop:#tags:*
as for the coloring, I tried the same filter, and absolutely all list items gets included in the filter. I'll take a guess and say the "tags" colorfilter is positioned (in the config ..->filter list) below a filter which colors read-only files only, so the "read-only" filter gets priority. Put the "tags" one at the very top of the list.

Sorry for double post,[posts merged]

I found the solution (it's simple!)

Code: Select all

!prop:#tags:
explanation:the ! inverts the filter. So it matches all files except ones without tags (see, there's nothing after #tags:)

[typo fixed]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

fogg
Posts: 32
Joined: 15 Jul 2014 16:13
Location: Going around the World

Re: help with color filter for all tagged files

Post by fogg »

@SammaySarkar, amazing! the solution is so simple. :appl:
The result is now excatly what I wanted.

I was typing the code from memory, the actual code I used is the same as you pointed out first.

I moved this filter to the top of the filter list, so it has the highest priority, and not overriden by read-only filters or any other filter which may be on top of it. so thanks for this tip again.
s404:signature not found.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: help with color filter for all tagged files

Post by bdeshi »

My pleasure! :)
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 66340
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: help with color filter for all tagged files

Post by admin »

NO: !props:#tags:
YES: !prop:#tags:

:)

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: help with color filter for all tagged files

Post by bdeshi »

Yes, seems I made a typo-fix-typo! At least he used the right code.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

fogg
Posts: 32
Joined: 15 Jul 2014 16:13
Location: Going around the World

Re: help with color filter for all tagged files

Post by fogg »

no problem, SammaySarkar. I figured out the ! was the important part, and just made the required changes to my filter code. :kidding:
s404:signature not found.

Post Reply