feat(anki): add media timing review before card creation (#203)

This commit is contained in:
sudacode authored and GitHub committed 2026-09-04 01:40:56 -07:00
1 parent 99266294b8
commit 84f718043a
78 files changed
+7022 -135

No files matched your search

+11
View File
@@ -350,6 +350,17 @@ export class KnownWordCacheManager {
return true;
}
removeNote(noteId: number): boolean {
if (!this.noteEntriesById.has(noteId)) {
return false;
}
this.removeNoteSnapshot(noteId);
this.persistKnownWordCacheState();
log.info('Known-word cache removed deleted note', `noteId=${noteId}`);
return true;
}
clearKnownWordCacheState(): void {
this.clearInMemoryState();
this.knownWordsStateKey = this.getKnownWordCacheStateKey();