IllDepence / anki_add_pitch_plugin

Anki addon to automatically add pitch accent information to cards.
https://ankiweb.net/shared/info/148002038
MIT License
32 stars 10 forks source link

Bulk Add from browser (only selected cards) #35

Open Nayelianne opened 1 year ago

Nayelianne commented 1 year ago

I don't know how tricky it would be to implement, but I would love a way to add pitch to specific cards while I'm creating them, be it by bulk from the edit menu on the browser, or by pressing a button on the card itself or through a right click menu when inside a card.

I know we have a button for manually adding pitches, but that means I have to go out and research the pitch accent for the card (which breaks the flow and can be time consuming), instead of having the addon automatically generate it. Having such a feature would enable me to add pitches on a "as needed" basis, instead of having to mess with config files if I need it on only certain cards.

IllDepence commented 1 year ago

Hi, thanks for the suggestion. I liked the idea and gave it a shot.

A few notes

I’m currently in the process of a bit of an overhaul of the add-on code and can’t say when I’ll update it on AnkiWeb, but you could install a version with the added functionality via Tools→Addons→Install from file and tell me

Here’s a download link for the version with the added functionality (tested on Anki 2.1.49).

Nayelianne commented 1 year ago

Wow, that was so quick, I really appreciate all the work! I played around with it for a bit and it's perfect for my needs, my Expression field is normally the first one on a card so that's totally fine by me. Not that I would mind if I had to mess with the config files to determine the field/note type, since many addons I use already have me doing that haha.

Love that you even made a little visual button for it (specially since the add menu is on a popup, so I can add them while reviewing and not even have to go to the browser window like this)! Very happy that I can more easily add pitches to different fields and new cards without having to open google as well.

I'm also on Anki 2.1.49 so sadly can't comment for other versions, but no bugs encountered here so far. Thanks again <3

Nayelianne commented 1 year ago

TL:DR; Found an addon incompatibility: Collapsible Fields.

Hi again! I come with not so great news haha. Things were working as a wonder for a while. Buuut eventually for some reason both the new automatic generation button and the manual buttons stopped working. When I clicked the button there was a one second pause like it was trying to do something, but then nothing happened at all, no error message, no nothing. Bulk add still worked as intended despite that though.

Sooo I did some digging around to what the cause may have been, and finally narrowed it down to an incompatible addon called "Collapsible Fields" - that I started to use due to having an unholy amount of fields. No fields were actually collapsed when the bug happened, so I guess it just interferes with yours by existing.

"Collapsible Fields" doesn't seem to interfere with any of my dictionary scraper addons that fill predermined fields by right click activation, nor the furigana add-on that also uses little buttons if that information is of any help at all.

I don't know if it's something worth looking into since it involves a different addon. But either way I figured you might like to know even if just to add to the compatibility documentation or in case someone comes pestering you about things not working, haha.