glfharris / echelon

Echelon - A Hierarchial Tags addon for Anki 2.1
GNU Affero General Public License v3.0
6 stars 2 forks source link

Show only nested tag, rather that whole tag #5

Closed jj71code closed 5 years ago

jj71code commented 5 years ago

At present my tag sidebar tag tree looks something like...

A&P _A&P::Cardiovascular __A&P::Cardiovascular::Baroreceptors-and-chemoreceptors __A&P::Cardiovascular::Cardiac-output __A&P::Cardiovascular::etc-etc-etc _A&P::Gastrointestinal ___A&P::etc-etc

Is it possible for the tag tree to display only the "sub section" of the name at that level of nesting. Something like...

A&P _Cardiovascular __Baroreceptors-and-chemoreceptors __Cardiac-output __etc-etc-etc _Gastrointestinal ___etc-etc

By displaying the full tag such as "A&P::Cardiovascular::Baroreceptors-and-chemoreceptors", your sidebar needs to be very wide when using the tag tree to navigate to cards for editing, etc.

Back in the 2.0.x version that this was ported from it had that feature. I'm not sure if updates prevent this from being the case, but it just looked a lot neater and was easier to navigate. If this can be done, or added in as a setting that can be toggled on/off, that would be most appreciated.

glfharris commented 5 years ago

Yeah, I agree, that looks much clearer. I'll put it on the to do list. Thanks!

c0eos commented 5 years ago

I've implemented this feature, as an optional parameter. Waiting to see if my pull request will be accepted.

glfharris commented 5 years ago

Yes, sorry! Started a new job, so had limited spare time. Will likely merge this weekend.

Thanks for the contribution!

glfharris commented 5 years ago

Included in latest version, thanks for the help!