Inverting File Properties Filter

Started by monochrome, April 06, 2018, 01:12:28 AM

Previous topic - Next topic

monochrome

I have a folder with images that aren't versions or masters, some versions and masters.

1. Select "Hide Versions": the versions are hidden. Masters and neither versions nor masters show.
2. Select "Invert Filter": all files that aren't versions are hidden. Only versions show.
3. Select "Hide Masters": the masters are hidden. Versions and neither versions nor masters show.
4. Select "Invert Filter": all files that aren't masters are hidden. Only masters show.
5. Select "Hide Masters" and "Hide Versions": the masters and versions are hidden. Only neither versions nor masters show.
6. Select "Invert Filter": Nothing is shown.

It seems like the "Invert Filter" operates on each property at a time and not on all of them together, which I would expect. With both "Hide Master" and "Hide Versions" I get "HIDE (is_version OR is_master)". But inverting this gives me "HIDE (NOT is_version OR NOT is_master)" - which shows nothing, instead of "HIDE NOT(is_version OR is_master)".

Mario

#1
The invert is applied to all individual items. This behavior is by design because this is how the underlying filter works.
I'm not sure anymore why this is so (4 years without a change in this area) but that's how it is. I don't know what will break if I change this behavior.

If you want a change in this behavior, please add a feature request.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

monochrome

Would a feature request that parallels the way stacks are handled in the filter panel have greater chance of acceptance? That is, instead of changing filter behavior, adding filters for "Show only Masters" and "Show only Versions", similar to "Hide stacked files" and "Show files that are parts of a stack"?

Mario

I have thought about the initial issue and changed the File Properties filter to apply the invert to the final result. I hope this does not break anything I did not think of.
This will be included in IMatch 2018.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook