Creating custom filter - show tags not containing the letter x

Gramps 6.0.6 Win 11

I would like to be able to filter Tags to only show tags not containing the letter x (I have a large number of tags related to 4 family lines, and have added x to those not directly related to the direct line to me, ie cousins, uncles and aunts, and nephews/nieces)

I am using the General filter for Tags, but would like to specify only those not containing the letter “x”, how can i add this to the filter?

There is no easy answer.

You would need to create a filter with a list of each tag.

People with the <tag>

Make sure to use the option At Least one rule must allply.

I made a new addon for Gramps 6.1 which both (the addon and Gramps) should be released soon.

(If you are interested in the technical aspects, you can see the code here: Add HasTagSubstr filter addon for all object namespaces by dsblank · Pull Request #908 · gramps-project/addons-source · GitHub).

It works by creating a filter, adding a rule, entering the text to match, and then using the filter.

This filter is fairly easy for a developer to code for Gramps. But I was also interested in how it could be made to be fast on large family trees. Gramps 6.2 will hopeful have some fixes merged that will make this very fast. But it should be quite functional in Gramps 6.1.