This add-on automates the sorting of Anki cards into specific decks based on user-defined logic. It beneficial if you split cards of the same note into different decks (e.g. separate decks for “Listen” and “Speak” cards)
Functionality
The add-on adds a menu item to the Anki Browser. When cards are selected and the tool is triggered, it evaluates each card against a set of rules defined in the configuration file. If a card matches the criteria for a rule, it is moved to the specified deck.
Features Rule Priority: Rules are processed from top to bottom. If multiple rules match a single card, the last rule in the list takes precedence. Multi-Criteria Matching: Rules can target cards based on Note Type, Tags, or Card Template names. All criteria within a single rule must be met for the move to occur (AND logic). Wildcard Support: Uses standard wildcard patterns (*) for flexible matching of names and tags. Case Insensitivity: Matching ignores capitalization to prevent errors from inconsistent naming. Undo: Moves can be reverted immediately using the standard Anki undo command (Ctrl+Z or Opt+Cmd+Z). Debugging: Includes a debug mode to display why specific cards did or did not match the current ruleset. Configuration Parameters note_pattern: Matches the Note Type name. tag_pattern: Matches any tag present on the note. card_pattern: Matches the specific Card Template name. [REQUIRED] deck: The destination deck path (e.g., “Parent::Subdeck”). [REQUIRED] Usage Define rules in the add-on configuration. Open the Browser and select cards. Right-click or use the “Cards” menu to select “Move Cards by Config Rules”.