anki icon indicating copy to clipboard operation
anki copied to clipboard

Would it be possible to import an existing Anki deck to a markdown file?

Open nixsee opened this issue 5 years ago • 5 comments

I'd love to import, edit and re-export some existing Anki decks. Is this a feature that might be possible to implement?

nixsee avatar Aug 04 '20 23:08 nixsee

@nixsee can I ask what your usecase is for this?

Soon i'll be working on browsing Anki decks/cards but it will be in yaml/JSON format. Usually so people can make quick edits to metadata and the questions/answers etc.

Converting back to Markdown won't be easy due to the way the cards are stored.

jasonwilliams avatar Aug 05 '20 10:08 jasonwilliams

I have downloaded about 8 different decks for learning Spanish, but I'd like to customize them to my own level/preferences - maybe even merge them all into one! It appears that this is very cumbersome/impossible within Anki, so I'd just like to be able to edit an entire deck in one file in VS Code, be it markdown, JSON or whatever format works.

nixsee avatar Aug 05 '20 17:08 nixsee

@nixsee let me start with the json/yaml explorer then we can go from there and see if that satisfies what you're after. it should be possible to move cards from 1 deck to another as it is just implementing VSCode's fileSystemProvider.

jasonwilliams avatar Aug 06 '20 14:08 jasonwilliams

Sounds great. I look forward to seeing what you come up with!

nixsee avatar Aug 06 '20 19:08 nixsee

Im open to PRs or ideas on this one.

Sadly when you convert a markdown file to Anki, its a lossy process. So going the other direction and having a card being converted back into markdown isn't straight forward. You may not achieve the same result as what you started with. For now the explorer shows everything in JSON format, but im open for someone to try and create a markdown format for each card already existing.

jasonwilliams avatar Jan 27 '21 19:01 jasonwilliams