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

Add card without gui

Open epszaw opened this issue 3 years ago • 5 comments
trafficstars

Hello!

Is it possible to add new cards to a deck without gui interaction?

epszaw avatar Jul 10 '22 13:07 epszaw

I am following this question too.

pgshow avatar Jul 11 '22 10:07 pgshow

I suppose addNote or addNotes should do the job?

oakkitten avatar Jul 11 '22 14:07 oakkitten

I guess, note and card are different entities. And, by the way, addNote and addNotes don't work as expected

epszaw avatar Jul 11 '22 14:07 epszaw

You can't add a card without adding a note. Cards are “a view” into a note so to say. You add cards by adding notes, and you delete cards by deleting notes.

What's the issue with addNote?

oakkitten avatar Jul 11 '22 15:07 oakkitten

I think you guys are using guiAddCards instead of addNote or addNotes. I made the same mistake. When you use addNote it will add the front/back without a prompt. @lamartire @pgshow

ghzgod avatar Jul 27 '22 12:07 ghzgod