lakesare / memcode

Spaced-repetition: with real formatting.
http://memcode.com
MIT License
339 stars 73 forks source link

Support Tab and Comma Separated Value Imports #194

Open 266-750Balloons opened 1 year ago

266-750Balloons commented 1 year ago

Hi. I've been enjoying using this software. However, I have found myself needing to transfer over sets from Quizlet. This has been rather tedious, as Quizlet exports its sets as copy-and-paste TSV or CSV text, like so:

What is Zombo.com?,A satirical website launched in 1999 that mimics a loading screen
What is Xkcd?,A webcomic based on STEM humor

I have to paste this into a text file and then import it into a spreadsheet file to convert it to the required .xlsx format.

I was wondering if it would be possible to support importing text files formatted like this, as well as the ability to directly paste text in said format into a textbox to import. If possible, I would also like support for custom term separators and line delimiters as well, so that I could import sets where the answer has line breaks within it. For instance if the term-definition separator was set to ;TAB; and the card separator was ;BREAK;:

What is Zombo.com;TAB;- Created in 1999
- Parodies flash loading screens
- Originally a university inside joke;BREAK;What is Xkcd?;TAB;- Really funny
- hee hee

Thank you for your time and effort in developing this software.

lakesare commented 1 year ago

Hi! It's possible to do, and this is desired functionality. I'm swamped at work myself, but this should be pretty straightforward to implement - PRs are welcome, I'll review & merge.