memcode icon indicating copy to clipboard operation
memcode copied to clipboard

Support Tab and Comma Separated Value Imports

Open 266-750Balloons opened this issue 1 year ago • 1 comments

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.

266-750Balloons avatar Sep 12 '23 03:09 266-750Balloons

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.

lakesare avatar Sep 13 '23 12:09 lakesare