david-swift / Memorize

Study flashcards in a native GNOME app
https://flathub.org/apps/io.github.david_swift.Flashcards
GNU General Public License v3.0
87 stars 9 forks source link

CSV import and export #38

Open titorgla opened 5 months ago

titorgla commented 5 months ago

Is your feature request related to a problem? Please describe.

I have stockpiled a lot of these old csv flashcard sets from various flashcards sites (i.e. quizlet, omniset, brainscape, etc) and would like to import them to Memorize

Describe the solution you'd like

  1. the ability to import csv flashcards directly to Memorize.
  2. the ability to export csv flashcards directly from Memorize.

Describe alternatives you've considered

Additional context

Most of these files follows the standard question/answer structure

HEADER1,HEADER2
Question1,Answer1
Question2,Answer2
david-swift commented 5 months ago

Thanks for the request! It's actually already possible to export into that format (without the headers, there are no headers in Memorize).

Screenshot from 2024-03-28 13-06-07

I'll add support for importing flashcards in that format.

I understand your request also involves the ability to directly import from/export to files without having to copy its contents. I can add a button for loading a file's content next to the entry row in the import view, and a button into the export dialog's toolbar.

david-swift commented 5 months ago

I added support for CSV in a49c0ff and for importing a file's content directly in 66deca2. I'll add support for exporting directly to files later.