15 3
Sign in to rate

Echelon - Improved Hierarchical Tags for Anki 2.1

<10kB. Updated 2019-08-12. Only supports Anki 2.1.x.


An Anki 2.1 Addon for Hierarchical Tags, with context aware renaming. Based on the addon we know and love Hierarchical Tags by pneff, ported to anki 2.1 plus some enhancements * Clicking on a tag such as `it` will no longer show all cards with tags beginning in `it*` * Allowing any tag separator - configurable in `Tools>Addons>Config` * Renaming tags appropriate to the tag hierarchy on right click! For example if we have tags: | Foo | Foo::Bar | Foo::Baz | Foo::Bar::Baz | Renaming Foo -> Apple: | Apple | Apple::Bar | Apple::Baz | Apple::Bar::Baz| Renaming Foo::Bar -> Banana: | Foo | Banana | Foo::Baz | Banana::Baz | Issues At the moment anything in the Side Tree Bar will have `Rename Tag` when right clicked. If you clicked on a deck, this won't rename the deck. If you supplied a valid tag name, any tags with the same name as that deck would be renamed according to your input. | Deck: Italian | *Right Click Rename Tag* | Renames any tags called Italian | Changes * Added default expansion depth * FIxed unicode handling for umlauts * Fixed Hiding of Marked and Leeches * Fixed Icon displays * Fixed ctrl & space selection of multiple tags *** As ever feel free to suggest any features or raise any bugs! Source: https://github.com/glfharris/echelon


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.1.x Add-Ons Ask a Question


on 1566677785
It was rather painful to redo the tags for a huge deck, but it pays off. No more clutter in my side bar. If I would need to point out a flaw, it would be the fact that each hierarchy dependence is a tag of its own, so if you would like to have the same sub-tag in two categories of a higher rank, you need to ad two hierarchy tags to your card. There's no other way to assign a sub-tag to more categories.
What I'm trying to say is that when I wanted to have my deck of a few subjects grouped into multiple levels ordered according to their subject AND level, each card needed to have two tags: "level00::subjectA" and "subjectA::level00". This way I can look for cards of different subject on the same level, or all levels of cards in the same subject matter.
on 1565618724
can I hide a main tag name in sub tags?
I mean, if i have A::B::C, than this hierarchy is shown at side bar like this.

but what i want for side bar tree is

Is there a way for me to do that?

also, I want this tag trees always be open, not hide sub tags. could it be possible?

by the way, Thank you for your awesome add-on!
on 1565340128
best add-on for organization
on 1564108051
It worked pretty well and I love the "replace" function. It would be even better if primary Tag could be hidden in the unfolded Subtag. For example "Tag1::SubTag1" showing only "SubTag1 under unfolded "Tag1", just like the navigation pane in the PC file explorer.
on 1563025897
It's really good, except for one caveat, although that could just be a unique bug on my end. If there's more than 3 levels in a tag hierarchy, then clicking on the highest-level tags won't give any results, because instead of searching for "tag:myTag or tag:myTag::*" it'll just search for "tag:myTag" - the wildcard subtag search doesn't show up.
on 1561883422
Thank you so much, I was about to write this kind of feature!
its works perfectly for me. good job !
on 1561297601
Brilliant, thank you so much for this add on. Unfortunately I have the same problem when trying to rename tags, I'll file an issue on Github.
on 1560647406
I loved this add on until I realized it wasn't compatible with night mode! :( Can you make it so that it's compatible?
on 1559114243
Hierarchical tags work, you just have to restart Anki after installing the add-on. Haven't tested the other features. I chose to install this over the other version because this seems like it's being updated/maintained and has the source code on GitHub.
on 1558527387
on 1555383141
The customizable tag separator saves my day (emacs org -> anki)!
on 1552109148
Very helpful in organizing cards.
FYI, I would like an option to expand/collapse all (keyboard shortcut?)
on 1549921101
Seems the download is no longer downloadable. Kept getting a 404 error.
Any assistance would be appreciated!
Comment from author
This is either an error with ankiwebs servers, or you're trying to install it on Anki 2.0. This addon is only for Anki 2.1.
on 1549512743
Very Good!
on 1549470608
Works nicely. Highly recommend.
on 1545611032
Does'nt work. Download failed : Error 404
on 1539537640
It makes renaming tags much easier and faster.
However, whenever I rename a tag, I start getting this message (below) every time I click inside any field of a note in explorer.
I have to restart Anki to get rid of this message. With restarting, the message doesn't appear until I use the addon again!

Debug info:
Anki 2.1.5 Python 3.6.1 Qt 5.9.2 PyQt 5.9
Platform: Mac 10.14
Flags: frz=True ao=True sv=1

Caught exception:
File "aqt/webview.py", line 121, in eventFilter
<class 'AttributeError'>: 'QContextMenuEvent' object has no attribute 'button'
Comment from author
Looked like a quirk of Anki's event handling. Fixed in the current version.
on 1538995155
An improvement on the earlier port called "Hierarchical Tags Addon (2.0 => 2.1)", thank you.