ANTI-SUCK: automatically move leeches to a separate deck
<10kB. Updated 2019-11-25.
As add-ons are programs downloaded from the internet, they are
malicious. You should only download add-ons you trust.
Supported Anki versions:
- 2.1.0 (Updated 2019-11-25)
To download this add-on, please copy and paste the following code
into Anki 2.1:
If you were linked to this page from the internet, please open Anki
your computer, go to the
Tools menu and then Add-ons>Browse & Install to paste in
All Anki 2.1.x
does it work on Mac? Because I've downloaded and installed it and there's not leeches folder whatsoever
Works as described!
really nice and easy tool to use!
is there any way for the cards to leave the leech deck after you have gotten it right a certain amount of times?
is it possible to both move the card to a deck & also auto flag it red? i usually flag my cards red like one of the other users and would like to have both features. where would i copy and paste? "card.setUserFlag(1) # Red flag leeched cards" otherwise seems okay, will have to wait until i get a few incorrect to see if it works
Can't believe this isn't already a feature in Anki.
Very clear direction on how to change what deck to sort into. Thanks for that, python is scary.
Very useful quick code snippet to have around. I like to use the flags introduced a year or two ago to mark leeches. Replacing the code to change the with the following does this automatically, which makes me very happy:
card.setUserFlag(1) # Red flag leeched cards
This is a much-needed add-on; thank you! Would this add-on work on the AnKing deck, which has many nested sub-decks? Also, I created a new deck for leeches called "FreqMissed," and changed the name in the __init__.py file. Going forward, would this new deck get auto-populated based on the number of lapses specified under options, or do I need to put the newly created "FreqMissed" in the AnKing folder?
Yes, it will work with no further action on your end. Good luck, doc.
How can we make the card move to a "leech" subdeck of the current deck?
If the current deck is named Spanish, for example, set the leech deck name to Spanish::Leech.
That assumes you only have one current deck, like me. If you have more, this addon doesn't have a built-in solution.
This helps in moving leeches into a deck with different options automatically.
question. Is it possible to add the old leeches from this deck to the SUCK deck?
Yup, you can do it manually: https://www.youtube.com/watch?v=ePRqW7gWuxY
Works well, and props on the cheeky name :)
Thanks! It's now working! Question though, will this work on ankidroid? AKA, does it automatically look for leeched cards during each start up?
Regarding the old question of whether you need to make a leech deck for this to work: No, it'll make the deck for you when you have a new leech. But you can make one now and it should still work.
Regarding leeches automatically moving to a leech deck when using the phone app: the program is only downloaded on your computer, so it only moves newly identified leeches when you do cards on your computer. If you then sync, the changes are saved to your phone. But I think if you're doing cards on your phone and get a new leech, the code won't identify that and move the card. In other words, it set up to act in the moment when you get a new leech (on your computer), not to act on startup to move all cards that are marked as leeches.
What deck options would you suggest? I feel like this has great potential but I can't fully envision it.
I study just one deck--let's call it "Spanish." My intervals on this deck grow quickly, with steps days apart. With this addon, whenever I have a leech, it moves the card to a subdeck called "Spanish::Leeches." My intervals in this subdeck are set up to grow slowly, with steps initially hours apart.
For example, the intervals I arbitrarily set up for the leech subdeck are steps like 60 120 300 1440 1400 2000 3000. This hammers hard on leeches, so they stick.
Before this add-on, I had to occasionally go to the leech tag that Anki generated automatically and move the cards to a separate deck (so that the tougher intervals would apply). Now it's automatic. Hopefully this answers your question.