Hierarchical Tags<10kB. Updated 2014-04-29. Only supports Anki 2.0.x.
As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.
To download this add-on, please copy and paste the following code into the desktop program:
If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.
Other Anki 2.0.x Add-Ons Ask a Question
Suggestion for improvement: It would be nice to have the nested tags displayed as such on the iOS (or, I imagine, Android) app. Currently, I must scroll through and select hundreds of full "XX:YY:ZZ" tags in the Custom Study review options; ideally I would be able to visually collapse them and select all of the cards under a selected layer as appropriate, much as sub-decks are collapsible on the main deck screen. (I acknowledge this is probably not feasible with the current version of Anki, and I thank and applaud you for creating and sharing this gem that has made organizing my cards so much easier).
This addon makes it so much easier to sort out what I need to study!
This is a really great addon, but it misses some kind of batch edit function. I mean, you can't simply rename a root tag, you have to do it manually for every subtag. I found a way to solve this but I've done little testing (anyways, it works) so:
- back up your collection
- open the collection.anki2 file in a SQLite editor
- execute the following commands on the database (while anki is closed):
UPDATE col SET tags = replace( tags, 'oldTag', 'newTag' ) WHERE tags LIKE '%oldTag%';
UPDATE notes SET tags = replace( tags, 'oldTag', 'newTag' ) WHERE tags LIKE '%oldTag%';
(replace oldTag and newTag with your tags)
- little testing was done (backup!)
- every ' and % is important, do not delete
- not working with accent characters (because of character coding)
- it will replace evrything containing the oldTag (example: replacing "it" with "asd" also alters "italian" to "asdalian") (if you know what you are doing you can edit the regExp part to avoid this)
- I'm just a random comment guy, I don't take any responsibility, but hope it helps someone ;)
Words are not enough to describe how useful this addon is! Thanks a lot for making this great addon.
I mainly use Anki for language learning, and love to categorize via tags; this naturally allows lots and lots of tags to pile up (at time of writing, I'm at about 91 tags total). This addon lets me further categorize the tags so that I'm not looking at a gigantic list whenever I want to study by tag or check and see how many cards of a certain tag I have. The only thing you can't do that I wish you could is have the tag field for a new card auto-complete if you type in a subtag.
For example, if I've got the subtag language::japanese, and I want to add a new japanese card, I would need to start typing 'language' for the auto-complete to kick in, while it would be super handy for me to just be able to type 'japanese'. Anyways, it's just a minor nitpick in an otherwise great addon!
"Hierarchical Tags" helps people who study several languages/domains with Anki. Thumbs up!
This is a great add on! So much cleaner than having hundreds of individual tags!
Just installed and tested it. Works great. :)
The best adds-on for Anki, and most essential one as well. This gives you a great way to organize your cards into a beautiful structure.
Only it cannot change me. ;-) So it's a pity that there is no way to change multiple tags at once like we can change cards in the Browser.
Here is a patch to ignore case in the tags (works better with ASCII tags than non-ASCII ones): https://github.com/pneff/anki-hierarchical-tags/pull/2/files
If you like the new collapsible decks, you may want to try this.
The separator can be changed in the file “hierarchical_tags.py”. (I use a hyphen.)