Heads up:
This functionality’s now also available in Leech Toolkit, along with a few other options on top of that!
Mainly keeping this here for legacy options.
Best! -koi
Automatically moves cards to user-assigned decks as soon as they’re leeched.
How To Use:
To assign decks or make any changes you can either edit the add-on’s config file or go to a deck’s legacy options window (Shift-clicking on “Options”) and assign its leech deck there (doesn’t apply to the deck options group).
The options menu input uses the same formatting as assigning the deck in the config, except without any quotes/brackets (e.g. things like “Leech Deck”, “Parent::Child”, etc.).
Quick note: decks can be renamed/moved after assigning them. It shouldn’t cause any issues for the add-on.
Config Settings:
Assigning a Leech Deck Use the pattern {“Deck”: “Sub-Deck”} (JSON Format): { “Deck”: “Leech Deck”, “Another Deck”: “Another Leech Deck” }
It’s possible to add as many leech decks as you might want, and multiple decks can be assigned the same leech deck too.
Using Sub-Decks Insert two colons between the parent deck and its sub-deck: { “Main Deck”: “Main Deck::Sub-Deck”, “Another Deck”: “Main Deck::Sub-Deck” }
Setting a Default Leech Deck Place the deck in the “##Default” key: { “##Default”: “Default Leech Deck” }
Cards get put into the default deck if a parent deck doesn’t have a leech deck assigned to it or leech movement is disabled in some way.
Disabling Auto-Movement for a Deck Set the leech deck to itself or you can make it a blank assignment: { “Static Deck”: “Static Deck” } { “Static Deck”: "" }
Disabling Auto-Movement to the Default Leech Deck Set the “##Default” key to a blank value: { “##Default”: "" }
This cancels all movement by default, unless a deck gets assigned its own leech deck to move to.
By default cards get put into a deck named “Leech” if there’s nothing assigned to the main deck.
Bugs/Issues: Please report any issues you run into on the project’s Github.
Misc/Shoutouts: I mainly wrote this as a way to customize the Anki Add-On Guide’s implementation for doing the same thing: here.
I also wanted to give a shout out to the ANTI-SUCK add-on, which originally implemented the guide’s example code and uploaded it, to begin with.