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

Can it import .html or .txt file?

Open glitchlover opened this issue 4 years ago • 2 comments

glitchlover avatar Sep 26 '20 15:09 glitchlover

That would be really nice to have. I'm trying to automate adding new cards to anki. Right now I'm manually importing plain card entries from "txt" file and clicking "sync". For me it's easier to maintain entries in single file and whenever I found new word, append it to end of the file.

I was looking for some alternatives and I found:

  • CrowdAnki plugin, but it's just import&export to JSON
  • Article about reverse-enginering Anki database - https://www.juliensobczak.com/write/2016/12/26/anki-scripting.html

RG9 avatar Nov 13 '20 08:11 RG9

I wouldn't advise adding such a feature directly into AnkiConnect itself. Rather, write your own script that parses the files and calls AnkiConnect's addNote or addNotes.

snoyes avatar Jan 08 '21 18:01 snoyes