Page 1 of 1

help with color filter for all tagged files

Posted: 19 Jul 2014 16:11
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.

Re: help with color filter for all tagged files

Posted: 19 Jul 2014 16:14
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]

Re: help with color filter for all tagged files

Posted: 19 Jul 2014 17:42
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.

Re: help with color filter for all tagged files

Posted: 19 Jul 2014 17:57
by bdeshi
My pleasure! :)

Re: help with color filter for all tagged files

Posted: 20 Jul 2014 10:26
by admin
NO: !props:#tags:
YES: !prop:#tags:

:)

Re: help with color filter for all tagged files

Posted: 20 Jul 2014 15:12
by bdeshi
Yes, seems I made a typo-fix-typo! At least he used the right code.

Re: help with color filter for all tagged files

Posted: 20 Jul 2014 18:51
by fogg
no problem, SammaySarkar. I figured out the ! was the important part, and just made the required changes to my filter code. :kidding: