How to exclude cards with a tag?

33 views
Skip to first unread message

Greg Reagle

unread,
Jan 17, 2025, 10:08:38 AMJan 17
to mnemosyne-...@googlegroups.com
Hello. I am using Mnemosyne with pipx:
package mnemosyne-proj 2.11.0.2, installed using Python 3.11.2

How do I exclude cards based on their tags? This would be equivalent to a logical AND NOT or a set theory SET DIFFERENCE.

For example, I am studying cards with tags A or B or C, and I come across a card that I find annoying and I want to forget about or suspend. I want to be able to add tag X and filter equivalent to:
(A OR B OR C) AND NOT X
(A UNION B UNION C) MINUS X

This could be for leeches, or for information that I just find annoying, or cards that are low priority when I am very busy.

I know that I could remove tags A, B, and C for the card in question, but this has some significant disadvantages. I permanently lose the information that was conveyed by the presence of tags A, B, and C. To get it back into rotation in the future, I have to re-add all three tags A, B, and C, instead of the much more convenient deleting just tag X.

I am using some logic and set "algebra" here for clarity, for those who understand it. I am not insinuating that the interface needs to use these mathematical concepts directly.

Peter Bienstman

unread,
Jan 17, 2025, 10:09:53 AMJan 17
to mnemosyne-...@googlegroups.com
I'm afraid this is not supported at the moment, sorry...

Peter
> --
> You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/mnemosyne-proj-users/ed0b7324-fb82-4373-8f7d-96a05685ac4a%40app.fastmail.com.

matthewD

unread,
Jan 18, 2025, 2:41:56 AMJan 18
to mnemosyne-proj-users
Perhaps you could use a Python script to add special tags to all the cards you want. As an example, I've attached a simple Python script that you can modify as needed. 
However, writing such a script might require some Python skills. But I believe it's easy to learn, and I encourage you to give it a try.
logical_tag.py

Greg Reagle

unread,
Jan 19, 2025, 11:13:03 AMJan 19
to mnemosyne-...@googlegroups.com
Thank you to both Peter and matthewD for your answers. Given that this feature is not directly supported, I will try to come up with creative solutions to achieve my goal. Maybe I will change the tags for an "excluded" card from "A", "B", and "C" to "not-A", "not-B", and "not-C".

The response from matthewD is more complicated than I want to take on right now. I can program, though I don't know Python. I want to keep the solution very simple and low tech as I can easily become distracted on programming issues. Nevertheless I thank you matthewD.
Reply all
Reply to author
Forward
0 new messages