anki
anki copied to clipboard
Feature suggestion: avoid creating duplicated flash cards when sending to anki
In the current version (0.3.0), if I push the same markdown file twice to anki, duplicated cards are created in anki.
Can we automatically detect the duplicates (e.g. by comparing front side of cards)?
The only time a duplicate happens is if you push the same card to different decks. It definitely shouldn’t be possible to create duplicates in the same deck. The API guards against this already.
I’ve tested this manually and never had duplicates.
My anki version is 2.1.33
This is the markdown file I was testing with
TypeScript
TypeScript: Utility Type: Partial<Type>
Test
When I executed the command "Anki: Send to Deck" a few times, I got the duplicates in Anki, all under "notes" deck. Here is the screenshot

Thanks I will take a look, it could be a possible regression
@songguoqiang I've been able to reproduce this by using certain characters.
It looks like the > character gets converted to > and for some reason AnkiConnect or Anki cannot discern that it is unique. If you try the same without the < > it should work.
Im not sure why special characters break the duplicate check, i would need to raise it with AnkiConnect.