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

guiAddCards vs. addNote

Open mzhou08 opened this issue 4 years ago • 2 comments

As a new user of Anki, I was trying to use ankiConnect to automatically add cards to my decks without opening any dialogs. I found the guiAddCards function, and tried to modify it to not show dialogs. However, I found the addNote function, which accomplishes exactly what I wanted.

To prevent similar confusion for future users, I've slightly modified the guiAddCards command to include an autoAdd option, which directly calls addNote. I've updated the README accordingly, adding a few lines to guiAddCards's description. I've also enabled silent closing for the closeAfterAdding.

Thanks for developing such a comprehensive Anki API!

mzhou08 avatar Jul 19 '21 20:07 mzhou08

Please review my pull request, linked here.

mzhou08 avatar Jul 19 '21 20:07 mzhou08

yes, I have searched for the function of adding cards without GUI for so long, until I find your PR. "Add notes" really confused me, I didn't know it was what I need.

uzqw avatar Nov 17 '21 12:11 uzqw