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

Add support for sub-decks #45

Open PinkYuDeer opened 4 months ago

PinkYuDeer commented 4 months ago

I really like your plugin, it really helps me a lot. But in the process of using it, I chose a deck with a lot of sub-decks, but the plugin would indicate that no card could be found. I included a lot of cards in the sub-deck.

IllDepence commented 4 months ago

Thank you for the feedback. Sub-decks are not yet supported, but I agree that this would be a useful feature.

Here are some initial considerations for adding such a feature. Please feel free to give feedback from the viewpoint of your specific use case.

Considerations for supporting sub-decks

  1. How to deal with sub-decks that have different fields?
    • Prompt user to individually use bulk add feature on each sub-deck?
    • Detect potential groups of sub-decks using same fields and prompt once per group? (Would then additionally like feature to save field selection)
  2. Is it possible to have cards in “parent decks” when they contain sub-decks?
    • If so, the user should have the choice to either only bulk add pitch to the parent deck, or the parent and all sub decks
TheRealXerox commented 1 week ago

I made an adjustment to the main code file if anyone is interested init.zip

It also adds alphabetical sort to deck list

Thank chat GPT cuz I'm no good with python