Giter Site home page Giter Site logo

lucasscharenbroch / anki-curses Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 31.24 MB

A fork of Anki with a curses front-end

License: Other

Shell 0.23% Batchfile 0.03% JavaScript 0.12% Rust 43.47% Python 34.71% SCSS 1.10% TypeScript 9.88% Roff 0.05% Rich Text Format 0.01% Starlark 0.10% NSIS 0.24% Swift 0.08% CSS 0.01% TeX 0.01% Svelte 9.96% HTML 0.01%

anki-curses's Introduction

Anki-Curses

A fork of Anki with a curses front-end.

The curses interface is not currently capable of being a complete replacement for the GUI (qt), but its features (see below) aim to cover most typical studying requirements.

Features

  • Basic Deck Browsing
  • Support for Basic Cards and Cloze Cards (Cloze deletion)
  • Note Editing
  • Note Lookup
  • Adding Notes
  • Sync
  • Configuration File

Usage

Anki-curses works directly on top of Anki's backend, so Anki can be built normally. This mainly entails installing dependencies and executing "run". See Anki's github for details.

Anki-curses relies on Anki for profile management, so the qt app must be run ("./run --qt") to set up the "collection.anki2" file. The curses interfaces prompts the user for this file if it isn't provided in the config.

Config File

The default location for the config file is "~/.config/anki-curses/config.toml" (defined in curses/acurses/conf.py as CONFIG_RELATIVE_PATH). Here's an example config.

collection_path = "/home/lucas/.local/share/Anki2/User 1/collection.anki2"
endpoint = "https://sync.ankiweb.net" # this is the default
username = "plaintext-username" # not necessary if hkey is provided
password = "plaintext-password" # not necessary if hkey is provided
hkey = "plaintext-hkey" # generated (and printed by the curses program) after a plaintext authentication
sync = true # if this isn't set, the program will prompt for a sync on start and exit
hide_child_decks = true # hides nested decks in the deck manager

Keybinds

Most of the keybinds are specified in the header of the window. Some repeated ones (':' for command, '/' for search, 'dufb' for navigation) are occasionally excluded

Command-Mode Commands

A vim-style command-entry mode is used.

  • :q! - force quit
  • :w - write db (save)
  • :s - sync (and save)
  • :wq - write and quit
  • :sq - sync and quit
  • :new, :add - new note
  • :find - find note
  • :findin - find note in a specific deck
  • :edits - browse edited notes

By default, when quitting the program, the database is saved, and sync is prompted for (unless 'sync' is set in the config).

anki-curses's People

Contributors

dae avatar hgiesel avatar rumovz avatar arthur-milchior avatar evandrocoan avatar abdnh avatar glutanimate avatar kleinerpirat avatar sobjornstad avatar bluegreenmagick avatar hikaru-y avatar agentydragon avatar alanhdu avatar hssm avatar kelciour avatar mkrump avatar lucasscharenbroch avatar simgunz avatar ankitest avatar tatsumoto-ren avatar brownbat avatar zjosua avatar winterhazel avatar julienbaley avatar phwoo avatar sam1penny avatar frostschutz avatar kaczmarj avatar krassowski avatar ospalh avatar

Watchers

 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.