ll-in-anki / find-missing-words

Find words in a text that you don't have Anki flashcards for yet
14 stars 0 forks source link

Deck, Note Type, Field Filters #2

Closed cofinley closed 5 years ago

cofinley commented 5 years ago

Added checkboxes and choosers to filter by deck, model (note type), and field.

Choosers were already made available by Anki for deck and model selection, but not field. I mirrored the other two in our own fieldchooser.py.

Updating the model will update the available fields. Updating deck doesn't affect anything else since they can have multiple models.

The choices are made available in the search() method in find_missing.py.

Video Demo

P.S.

ohare93 commented 5 years ago

Very good stuff, my man 👍 I admit getting Qt terminology in my head is a bit of a headache, but you seem to have got something working! 😁 Of course the search does not yet work, but all in due time.

As a note for future features, one thing that I have as a personal requirement is the ability so select multiple different fields from multiple different note types. Or simply all fields of the name "X, Y, and Z" from card types "A, B, and C". So if they all shared "Word" as a field, then I could just select that field name + the Note Types (or all). I will add this as a task in the taskboard 👍