Anki add-on: Tag Tweaks

All about language programs, courses, websites and other learning resources
User avatar
arthaey
Brown Belt
Posts: 1082
Joined: Sat Jul 18, 2015 9:11 pm
Location: Seattle, WA, USA
Languages: :
EN (native);
ES (adv receptive, int productive);
FR (false beginner);
DE (lapsed beg);
ASL (lapsed beg);
HU (tourist)
Language Log: viewtopic.php?f=15&t=3864&view=unread#unread
x 1636
Contact:

Anki add-on: Tag Tweaks

Postby arthaey » Mon Aug 03, 2015 2:14 pm

I have finally decided to give Anki a go, and I'm loving that the desktop app, at least, is open source so that I can tweak it to my heart's content.

This is one of my first add-ons for Anki and Python isn't one of my primary programming languages, so both bug reports and suggestions for improving the code itself are welcome!

Official Anki url: https://ankiweb.net/shared/info/1384323610

Description
An Anki add-on to slightly modify how the browse window handles tags.

Available Features
  • expandTagsByDefault: Displays all your hierarchical tags by default.
  • collapseSearchesByDefault: Useful if you have your searches "duplicated" as filtered decks too, or if you just want searches to be hidden be default.
  • refreshTagListAfterDeletingTag After you click the "Remove Tags" button in the browse window, the tag list will refresh itself to show that the tag was successfully removed.
Requirements
To enable or disable features, you must edit the source code. You can find this from the Anki menu Tools > Add-ons > TagTweaks >Edit...

This add-on assumes you also have the Hierarchical Tags add-on installed.

Support
Post a new issue on Github (or make a pull request!). My other Anki add-ons are also on Github.

This addon is licensed under the same license as Anki itself (GNU Affero General Public License 3).
1 x
Posts in: FrenchGermanHungarianSpanish
NaNoWriMo: 10,000 words
Corrections welcome in any language; I prefer an informal register.

User avatar
zenmonkey
Black Belt - 2nd Dan
Posts: 2016
Joined: Sun Jul 26, 2015 7:21 pm
Location: Germany and France
Languages: Spanish, English, French trilingual - actively studying German (B2/C1), Hebrew, Tibetan, Setswana.
Some knowledge of Italian, Portuguese, Ladino, Yiddish ...
Want to tackle Tzotzil, Nahuatl
Language Log: viewtopic.php?f=15&t=859
x 4970
Contact:

Re: Anki add-on: Tag Tweaks

Postby zenmonkey » Mon Aug 03, 2015 2:36 pm

Tried it but it crashed on browse. Posted the issue.
0 x
Tagged posts: Language Method Resource
Please feel free to correct me in any language, critique my posts, challenge my thoughts.
I am inconsistency incarnate.
Go study! Publisher of Syriac, Aramaic, Hebrew alphabet apps at http://alphabetsnow.zyntx.com

User avatar
arthaey
Brown Belt
Posts: 1082
Joined: Sat Jul 18, 2015 9:11 pm
Location: Seattle, WA, USA
Languages: :
EN (native);
ES (adv receptive, int productive);
FR (false beginner);
DE (lapsed beg);
ASL (lapsed beg);
HU (tourist)
Language Log: viewtopic.php?f=15&t=3864&view=unread#unread
x 1636
Contact:

Re: Anki add-on: Tag Tweaks

Postby arthaey » Mon Aug 03, 2015 2:47 pm

zenmonkey wrote:Tried it but it crashed on browse. Posted the issue.

I've updated the script, so grab the latest version and let me know if that fixes the crash. I asked for some follow-up information on the Github issue.
1 x
Posts in: FrenchGermanHungarianSpanish
NaNoWriMo: 10,000 words
Corrections welcome in any language; I prefer an informal register.

User avatar
zenmonkey
Black Belt - 2nd Dan
Posts: 2016
Joined: Sun Jul 26, 2015 7:21 pm
Location: Germany and France
Languages: Spanish, English, French trilingual - actively studying German (B2/C1), Hebrew, Tibetan, Setswana.
Some knowledge of Italian, Portuguese, Ladino, Yiddish ...
Want to tackle Tzotzil, Nahuatl
Language Log: viewtopic.php?f=15&t=859
x 4970
Contact:

Re: Anki add-on: Tag Tweaks

Postby zenmonkey » Mon Aug 03, 2015 2:52 pm

Now works fine!

I just need to figure out how to use tags properly.

For example I just finally figured out that to use my German tag I actually need to write "tag:german*" because it is a hierarchy....
1 x
Tagged posts: Language Method Resource
Please feel free to correct me in any language, critique my posts, challenge my thoughts.
I am inconsistency incarnate.
Go study! Publisher of Syriac, Aramaic, Hebrew alphabet apps at http://alphabetsnow.zyntx.com

User avatar
arthaey
Brown Belt
Posts: 1082
Joined: Sat Jul 18, 2015 9:11 pm
Location: Seattle, WA, USA
Languages: :
EN (native);
ES (adv receptive, int productive);
FR (false beginner);
DE (lapsed beg);
ASL (lapsed beg);
HU (tourist)
Language Log: viewtopic.php?f=15&t=3864&view=unread#unread
x 1636
Contact:

Re: Anki add-on: Tag Tweaks

Postby arthaey » Mon Aug 03, 2015 2:58 pm

zenmonkey wrote:Now works fine!

Yay! :)

zenmonkey wrote:I just need to figure out how to use tags properly.

For example I just finally figured out that to use my German tag I actually need to write "tag:german*" because it is a hierarchy....

I'm also figuring out exactly how using tags will work best for me. Right now I'm obsessively over-tagging, under the theory that "more is better", but I expect to cut back once I've used it for a bit and seen which onces are actually useful in practice.
0 x
Posts in: FrenchGermanHungarianSpanish
NaNoWriMo: 10,000 words
Corrections welcome in any language; I prefer an informal register.

User avatar
emk
Brown Belt
Posts: 1394
Joined: Sat Jul 18, 2015 12:07 pm
Location: Vermont, USA
Languages: English (N), French (B2+)
Badly neglected "just for fun" languages: Middle Egyptian, Spanish.
Language Log: viewtopic.php?f=15&t=723
x 4700
Contact:

Re: Anki add-on: Tag Tweaks

Postby emk » Mon Aug 03, 2015 3:39 pm

Cool hack!

As for folks asking about tagging, here's one more data point: Personally, I prefer to organize my decks into languages and media types. I find it very weird to jump from French text to Spanish audio to hieroglyphics; it upsets my rhythm. And I can review text sometimes, but not audio. But beyond that, I try not to add too many tags. There's always a temptation to make the perfectly-organized Anki deck, but I find it's more efficient to make cards quickly and just chug through reviews, deleting anything that annoys me. :-)
0 x

User avatar
arthaey
Brown Belt
Posts: 1082
Joined: Sat Jul 18, 2015 9:11 pm
Location: Seattle, WA, USA
Languages: :
EN (native);
ES (adv receptive, int productive);
FR (false beginner);
DE (lapsed beg);
ASL (lapsed beg);
HU (tourist)
Language Log: viewtopic.php?f=15&t=3864&view=unread#unread
x 1636
Contact:

Re: Anki add-on: Tag Tweaks

Postby arthaey » Mon Aug 03, 2015 3:45 pm

I'm planning to have only one deck per language (although if I add sound to any cards, I might take your advice and make it one deck per language–media type pair). As you say, jumping between languages sounds like a great way to befuddle one's brain without any real learning benefit. ;)

My tags are things like "Spanish::grammar::subjunctive" or "source::books::el-marciano". I don't expect to need them often, but I can imagine sometimes wanting to find something specific or maybe do a cram-session around something fine-grained. Since I kinda like organizing things, it's more fun than annoying to tag-and-forget, at least for me.

But you do you! If you don't enjoy tagging and get little/no benefit from having "the perfectly-organized Anki deck," then skip it. :)
0 x
Posts in: FrenchGermanHungarianSpanish
NaNoWriMo: 10,000 words
Corrections welcome in any language; I prefer an informal register.

User avatar
zenmonkey
Black Belt - 2nd Dan
Posts: 2016
Joined: Sun Jul 26, 2015 7:21 pm
Location: Germany and France
Languages: Spanish, English, French trilingual - actively studying German (B2/C1), Hebrew, Tibetan, Setswana.
Some knowledge of Italian, Portuguese, Ladino, Yiddish ...
Want to tackle Tzotzil, Nahuatl
Language Log: viewtopic.php?f=15&t=859
x 4970
Contact:

Re: Anki add-on: Tag Tweaks

Postby zenmonkey » Mon Aug 03, 2015 9:02 pm

My decks are grouped by language but are definitely not single decks per language. I don't want music decks mixed in with grammar.
What I do mostly is:

german::assimil::l32
hebrew::pod101::earlyvocab
german::music::fanta4::sieistweg
0 x
Tagged posts: Language Method Resource
Please feel free to correct me in any language, critique my posts, challenge my thoughts.
I am inconsistency incarnate.
Go study! Publisher of Syriac, Aramaic, Hebrew alphabet apps at http://alphabetsnow.zyntx.com

User avatar
zenmonkey
Black Belt - 2nd Dan
Posts: 2016
Joined: Sun Jul 26, 2015 7:21 pm
Location: Germany and France
Languages: Spanish, English, French trilingual - actively studying German (B2/C1), Hebrew, Tibetan, Setswana.
Some knowledge of Italian, Portuguese, Ladino, Yiddish ...
Want to tackle Tzotzil, Nahuatl
Language Log: viewtopic.php?f=15&t=859
x 4970
Contact:

Re: Anki add-on: Tag Tweaks

Postby zenmonkey » Mon Aug 03, 2015 9:18 pm

Would you know how to create new groupings like "- German" or "- Hebrew"

Screen Shot 2015-08-03 at 23.16.06.png
Screen Shot 2015-08-03 at 23.16.06.png (186.06 KiB) Viewed 1089 times
0 x
Tagged posts: Language Method Resource
Please feel free to correct me in any language, critique my posts, challenge my thoughts.
I am inconsistency incarnate.
Go study! Publisher of Syriac, Aramaic, Hebrew alphabet apps at http://alphabetsnow.zyntx.com

User avatar
arthaey
Brown Belt
Posts: 1082
Joined: Sat Jul 18, 2015 9:11 pm
Location: Seattle, WA, USA
Languages: :
EN (native);
ES (adv receptive, int productive);
FR (false beginner);
DE (lapsed beg);
ASL (lapsed beg);
HU (tourist)
Language Log: viewtopic.php?f=15&t=3864&view=unread#unread
x 1636
Contact:

Re: Anki add-on: Tag Tweaks

Postby arthaey » Mon Aug 03, 2015 9:26 pm

I haven't made subdecks myself yet, but according to the manual, you either name them "German::Songs MCDs" or you drag-n-drop.
1 x
Posts in: FrenchGermanHungarianSpanish
NaNoWriMo: 10,000 words
Corrections welcome in any language; I prefer an informal register.


Return to “Language Programs and Resources”

Who is online

Users browsing this forum: No registered users and 1 guest