A beginner-friendly way to build person filters in Gramps.
Easy Filter Builder is not a replacement for Gramps' Filter Editor – quite the opposite: everything goes through it. What you build here is saved as ordinary Gramps custom filters, so they show up in the Filter Editor, the sidebar filter, reports and exports, and keep working without the addon.
The focus is on making a filter simple to build. Real-world questions –
"everyone in my tree, except my wife's relatives and their spouses" – normally
need several helper filters, inverted rules and careful all / at least one choices.
Here you build small blocks from ordinary Gramps rules and combine them in three
baskets, while a live count shows how many people match. The helper filters are
still there – Easy Filter Builder creates them for you as ze_ filters, which sort to
the bottom of the filter list.
When the baskets aren't enough, you can write a formula instead – and it may be as complex as you like, even so complex that it can no longer be shown in the simple baskets.
Made for Gramps 5.1, 5.2, 6.0 and 6.1 (Tested on Gramps 5.1, 5.2, 6.0.8 and 6.1.0-beta2-1 in Windows and 6.0.8 in Linux Zorin.
Close Gramps.
Extract the downloaded ZIP archive.
Copy or extract the project folder into your Gramps user plugin folder.
Keep the complete folder structure unchanged, including any locale folder
included with the project.
The user plugin folder is normally located here:
%AppData%\gramps\gramps<version>\plugins\~/.gramps/gramps<version>/plugins/~/Library/Application Support/gramps/gramps<version>/plugins/Replace <version> with the Gramps version folder used on your system.
Start Gramps again.
Check that the installed filter, rule, gramplet or tool is available where described in the project documentation.
If the project does not appear or fails to load, check Help → Plugin Manager for an error message.
Because the project was installed only in the user plugin folder, removing that folder removes the test installation without changing the original Gramps program files.
Saved json files lives separately, in
…/gramps<XY>/easyfilterbuilder/— not in the plugin folder — so replacing or removing the plugin folder never touches them.
The window has the person list on the left and the build area on the right.
Under Build/Edit blocks, press Add rule and pick any Gramps person rule (right-click a rule to add it to your favorites). Choose how the rules combine – All rules must apply or One rule is enough – and press Create block. The block appears in Your blocks, with its own match count.
Select a block and press + to put it in a basket:
| Basket | Meaning |
|---|---|
| (top) | Included only if it matches every block |
| But also (&) | …and matches at least one of these blocks |
| Except (-) | These people are taken out |
Every block gets a letter, and a letter can be used as often as you like – e.g.
(A & B) / (A & C) - (B & D) (/ or, & and, - except, ( ) group).
Mistakes are explained as you type.
Give the filter a name (and an optional comment) and press Save to Gramps…. Press Test filter at any time to show the matching people in the list. Live counts updates the numbers while you edit – turn it off if it slows things down, then press Test to get a number.
A filter that something else uses – another filter, or a block in Your blocks – can't be deleted or renamed. The message tells you exactly which filter and block to change first.
| On disk | What it is |
|---|---|
My filter(EFB) |
the filter you saved – use this one |
ze_… |
your blocks – they become the helper filters in Gramps |
efbop_… |
internal structure (and/or/except) |
All of them carry (EasyFilterBuilder) at the end of the comment. Leave the ze_ and
efbop_ filters alone – Easy Filter Builder manages and removes them for you.
gsettings set org.gnome.mutter attach-modal-dialogs falseEasy Filter Builder is a sibling of FilterWorkbench (same filter engine, different goal: FilterWorkbench is the full workbench, Easy Filter Builder the easy path). They can be installed side by side.
Questions and bug reports are welcome on GitHub https://github.com/HN1962/Gramps-Tools-and-Filters or in the Gramps Discourse forum.
GNU General Public License v2 or later, like Gramps.
https://myown-project.dk/