Create Decks from Tag-Hierarchy

AnkiWeb addon 84261342

Builds a deck hierarchy mirroring an existing tag hierarchy, moves matching cards into sub-decks, with custom names, parent decks, and configurable handling.
AI-generated summary; may contain mistakes.

taggingdeck-management

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-08-20
Anki versions
2.1.1~
Description language
en

Maintenance

active

  • Last update or commit was 42 days before the snapshot (2026-08-20).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1+2026-08-20
History across monthly snapshots

Loading…

Similar addons

Tag_to_Decks

Select a tag to create matching decks and subdecks from its subtag hierarchy in alphanumeric order, with a progress bar during building.

taggingdeck-management

Rating 9 πŸ‘ 7 Β· πŸ‘Ž 2 Anki 25.02.7~ Updated 2025-09-26

README

Tag to Deck Hierarchy

An Anki add-on that builds a deck hierarchy from an existing tag hierarchy and moves the matching cards into the correct sub-decks. Disclaimer: This tool was quickly coded with Claude Opus 4.8. It is a very useful tool to me and some of my study-buddies, thats why I thought I'd share. :)

AnkiWeb listing: (add the link here once published)


Why?

Anki uses the same separator (::) for both tags and decks to represent hierarchies. If you organize your cards mainly through tags (e.g. Medicine::Neurology::HSP) but want a matching deck structure for studying β€” say, to drill a specific sub-topic or see per-topic statistics β€” you'd normally have to search for and move cards by hand. This add-on automates that step.

Features

  • Pick any (nested) tag as the starting point.
  • Automatically creates a main deck plus all matching sub-decks mirroring the tag structure.
  • Custom name for the main deck, independent of the tag name.
  • Custom parent deck β€” nest the new structure under an existing deck.
  • Searchable pickers: typing filters tags/decks with a "contains" match, not just a prefix match.
  • Automatically moves the cards of matching notes into the correct (most specific or topmost β€” configurable) deck.
  • Optionally creates empty sub-decks too, so the structure fully mirrors the tag hierarchy.
  • Tags are never changed or deleted β€” only card-to-deck assignment changes.

Usage

  1. Tools β†’ Build Deck Hierarchy From Tags…
  2. Pick or type the source tag (e.g. Medicine::Neurology).
  3. Set a name for the new main deck.
  4. Optionally pick a parent deck under which the new structure should be nested.
  5. Click OK β€” the decks are created and the cards moved accordingly.

Settings

Via Add-ons β†’ Config for this add-on:

Option Default Meaning
assign_to_most_specific true If a note has several matching tags: move its cards to the most specific (deepest) matching deck instead of the topmost one.
create_empty_decks true Also create sub-decks that don't currently have any cards, so the structure is complete.

Compatibility

Tested with current Anki desktop releases (Qt6 backend). Requires the modern CollectionOp API (Anki >= 2.1.45).

License

AGPL-3.0, same as Anki itself.

Contributing / Reporting bugs

Issues and pull requests are welcome: (https://github.com/dariores/)