kaegi/MorphMan

Add tags even if note type should not be modified

Opened this issue · 2 comments

Anki version: 2.1.35
Morphman version: from 2021-02-11 (latest)

It would be awesome if Morphman would still add the i+1, i+2 (and so on) tags although it is not modifying the schedule.
This is tremendously helpful when grinding through series or other imported decks where the order is crucial for comprehension (especially subtitles). With the tag information, it's also easier to just skip i+2 cards instead of trying to read Chinese characters you don't know yet.

fw42 commented

I opened a similar issue in #274.

My workaround for now is to disable the following lines (532 to 547):

MorphMan/morph/main.py

Lines 532 to 547 in 3fde85f

# Now reorder new cards based on MMI
mw.progress.update(label='Updating new card ordering...')
ds = []
# "type = 0": new cards
# "type = 1": learning cards [is supposed to be learning: in my case no learning card had this type]
# "type = 2": review cards
for (cid, nid, due) in db.execute('select id, nid, due from cards where type = 0'):
if nid in nid2mmi: # owise it was disabled
due_ = nid2mmi[nid]
if due != due_: # only update cards that have changed
ds.append((due_, now,
mw.col.usn(), cid))
mw.col.db.executemany(
'update cards set due=?, mod=?, usn=? where id=?', ds)

This way, tags will be added but no cards will be rescheduled (for decks that are set up to be modified).

I'm using this to find cards in a given deck that I can delete (because I already know the words).

I'd love this feature to be an option in the config as well.
I was precisely looking for a way to get that info into a deck without affecting the card ordering/scheduler, MorphMan has a lot of potential.

Thank you so much for that solution @fw42