Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tags even if note type should not be modified #260

Open
gittegit opened this issue Sep 6, 2021 · 2 comments
Open

Add tags even if note type should not be modified #260

gittegit opened this issue Sep 6, 2021 · 2 comments

Comments

@gittegit
Copy link

gittegit commented Sep 6, 2021

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
Copy link

fw42 commented Jul 7, 2022

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).

@Nayelianne
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants