Code Monkey home page Code Monkey logo

anki-import-scheduling-info-from-csv's Introduction

Anki Import Scheduling Info From CSV

Anki addon ID: 891862080

This is a small addon to reschedule cards based on the contents of a CSV file. Here is an example CSV:

1634097916122,,28.3,1160,43
1634097916110,2021-08-23,28.3,1160,43

The meaning of the fields are as follows:

  1. Card ID - the ID of the card in question. From the Anki Add-on guide, here is how you might discover card IDs for a card from Python.

    ids = mw.col.find_cards("tag:x")
    

    Or you could use AnkiConnect.

  2. Due date.

    • If blank, makes the card a new card. In this case the rest of the fields on the lines are ignored, but they must contain numeric data in order for the CSV to be parsed correctly.
    • Otherwise, contains a date in YYYY-MM-DD format to set the due date of the card to. In this case, the card is put into the review state.
  3. Interval: the interval of the card (i.e., the number of days until the card is due).

  4. Ease - the ease of the card. A per-mille value. For example, if you want to set your card's ease to 250%, set this field to "2500".

  5. Reps - number of times this card has been seen.

Usage

Once this addon has been installed, a menu item "Import card scheduling info from CSV" will be added to the "Tools" menu. Click on that, select one or more CSV files from the file picker, and the card's scheduling information will be updated. Note that the CSV files must be properly formatted and cannot contain a header line.

Motivation

See this Reddit post: Bulk import notes from another SRS, including setting scheduling information.

I've been using Org-mode in Emacs for many years now, and I've made many cards within Org-mode using an SRS package called org-drill. However, I've recently discovered the anki-editor Emacs package that lets me manage the contents of the note fields within Org-mode (next to my other notes) while maintaining the scheduling information in Anki. Any edits to the note fields within Anki will update the fields in Anki using AnkiConnect. This has been working very well for me, and I'd like to export my existing org-drill notes to Anki.

This add-on was written for me to import the scheduling information maintained by org-drill.

License

AGPL v3.

anki-import-scheduling-info-from-csv's People

Contributors

telotortium avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.