[go: up one dir, main page]

Skip to content

Convert a git repository with folders and files into a CSV file that can be imported into Anki

License

Notifications You must be signed in to change notification settings

flobb/RepositoryToAnki

Repository files navigation

RepositoryToAnki

Convert a git repository with folders and files into a CSV file that can be imported into Anki

Requirements

OR

  • PHP
  • Git
  • Composer
  • A git repository somewhere with card files (look below for details)

Install

make start

OR

cp ./config/parameters.yml.dist ./config/parameters.yml
composer install

Commands

With Docker how i can run something from the Console ?

docker-compose run --rm tools bin/console

How to "convert" the repository to a CSV file ?

bin/console export 'urltomyrepo.git'

Format

You have to create files with the "card" extension.

The files can be in subfolder, as many as you want. The folder's name will be added to the tag list of the card.

Exemple:

/tag1/tag2/mycard.card

The card will have the tag1 and tag2.

Card content example:

tags: some,tags,list,comma,separated
-----
My question or some text ?

On many lines.
-----
The response.

Can be on many line too.

The CSV

The file will be generated in the export /export by default.

The format is : "question","content","tags"

Import

In Anki, select the menu "File > Import". Select the generated CSV. Click on "deck" then create a new deck or select the deck that you want to be updated by the CSV. Leave the default options:

  • type: basic
  • field separator: semicolon
  • allow HTML: not checked
  • field 1: front
  • field 2: back
  • field 3: tags Then click on "import"

DONE

Authors

Contribute

Contributions to the repository are always welcome! Feedback is great.

Feel free to fork the project and make a PR.

Support

If you are having problems, fill an issue.

License

This bundle is licensed under the MIT License

About

Convert a git repository with folders and files into a CSV file that can be imported into Anki

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published