/AnkiPassFail

Avoid Ease-Hell!

Primary LanguagePythonMIT LicenseMIT

AnkiPassFail

Avoid Ease-Hell!

Installation

Download and run the latest AnkiPassFail.ankiaddon release.

Usage

Installing the add-on is all that's required. Once installed, the Easy and Hard buttons are disabled along with their corresponding hotkeys 2 and 4 respectively.

    <15m           2d           7d           2mo
┌───────────┐ ┌╴╴╴╴╴╴╴╴╴╴┐ ┌──────────┐ ┌╴╴╴╴╴╴╴╴╴╴┐
│   Again   │ ┆   ░░░░   ┆ │   Good   │ ┆   ░░░░   ┆
└───────────┘ └╴╴╴╴╴╴╴╴╴╴┘ └──────────┘ └╴╴╴╴╴╴╴╴╴╴┘

Development

  1. Install the required [python-version]. See the Anki development docs for more information.

    pyenv install [python-version]
  2. Clone this repository.

    git clone git@github.com:tnahs/AnkiPassFail.git
  3. Set [python-version] as the local version:

    cd ./AnkiPassFail
    pyenv local [python-version]
  4. Create and enter a virtual environment:

    python -m venv .venv
    source .venv/bin/activate
    pip install --upgrade pip
  5. Install required packages:

    pip install -r requirements.txt
  6. Set development environment variables. See Anki development | Environment Variables for more information.

    Required:

    export ANKI_ADDON_DEVELOPMENT=1

    Optional:

    export ANKIDEV=1
    export LOGTERM=1
    export DISABLE_QT5_COMPAT=1
  7. Run Anki from the terminal.

    anki