A Report of 'Custom Filters'

I had a moment of frustration this afternoon when I could not locate a filter I ‘thought’ I had made some time ago. Of course, I hadn’t, I probably just wished I had…but it got me thinking that it would be very useful to have a filter report, an inventory of filters and how they were composed so I could annotate it for future use. Does anybody know if such a thing exists already?
or do we need to supplicate one of the filter writers to help us out?


I linked my custom_filters.xml as a Media object and manage them that way. The Category silos for filters makes using the filter editors inside Gramps too awkward.

This allows me to cut&paste filter definitions for sharing. Plus I can use Notes to archive them.

1 Like

I am not sure if this helps but the custom filters a user puts together is saved in custom_filters.xml stored in your user’s version folder which is the gramps## folder.

I always try to make sure I have a backup of this file but as an xml file it would be easy to edit down to single filters for archive. The active file obviously only contains what you currently have. Delete a filter and the xml also deletes it.

So I describe them outside of Gramps, in my own gramps usage description page on Notion.

I’ve defined them a codification to be sure description part of filter name is not an issue for filters calling another filters and if I went to change some filters name sometimes.

The most important thing is to have a unique number in filter title to be able to research it if you change the description part of the title.

Just a thought but… if a Custom Filter report was written (and it would be a nice complement to the Database summary report for managing your Tree development), then an option to also include a list of Rules (with Descriptions & whether an add-on) would make the reading Report less dependent on external references for built-in and Add-on rules.

1 Like

I don’t know much about XML, but I have enough computer programming experience to get an idea what it’s doing. For those who don’t know, EXCEL can ‘read’ xml files. It will create an XML table that I find easy to read.

  • Right click the file and choose “open with Excel”
  • Click the radio button for “As an XML table”
  • Click ‘OK’
  • Excel will warn about a missing schema. Click ‘OK’
    Excel will create a table with headings: type, name, function, class, use_regex, value.
    Now you have a list of your filters. One can sort, annotate. etc.
1 Like