anki-connect icon indicating copy to clipboard operation
anki-connect copied to clipboard

Return original note ID on "cannot create note because it is a duplicate" error

Open Idane opened this issue 4 years ago • 2 comments

Use case: I would like to upsert notes without having to find the duplicate myself

Idane avatar Dec 12 '20 11:12 Idane

@FooSoft Is this something you would consider desirable for the project? If so, I could take a crack at it.

Idane avatar Dec 14 '20 19:12 Idane

Yeah, I think that should be fine. We'd probably want this new behavior behind an optional flag, just so that we don't change the behavior of existing tools that use this API.

FooSoft avatar Dec 15 '20 00:12 FooSoft