Crates.io | flashy |
lib.rs | flashy |
version | 0.1.0 |
source | src |
created_at | 2024-07-30 13:35:41.288049 |
updated_at | 2024-08-13 09:07:09.52613 |
description | A TUI to write and use flashcards |
homepage | |
repository | https://gitlab.com/haasal/flashy-rs |
max_upload_size | |
id | 1319796 |
size | 181,897 |
!!! The project is still in early development so expect breaking changes !!!
A flashcard TUI written in Rust that supports Anki styled repetition and writing flashcards in TOML.
I used fsrs (SR scheduling), ratatui (UI) and clap (CLI).
# clone this repo
git clone https://gitlab.com/haasal/flashy-rs
cd flashy-rs
cargo run -- help
This project consists of a CLI and a TUI. The CLI is used to import flashcard files, add new flashcards and start the UI.
cargo run -- new deck --name "my-deck"
cargo run -- new flashcard --deck "my-deck" -q "Question..." -a "Answer..."
cargo run -- new flashcard --deck "my-deck" -q "Question 2..." -a "Answer 2..."
cargo run -- ui --deck "my-deck" # Start the TUI
Create file my-cards.toml
:
[[decks]]
name = "Deck 1"
[[decks.cards]]
q = "Question 1"
a = "Answer 1"
[[decks.cards]]
question = "Question 2"
answer = "Answer 2"
[[decks.cards]]
q = "Question 4"
a = "Answer 4"
[[decks]]
name = "Deck 2"
description = "Description 2"
[[decks.cards]]
q = "Question 3"
a = "Answer 3"
Import the deck into the database
cargo run -- file --import -f "my-deck.toml"
Review cards in Deck 1
cargo run -- ui --deck "Deck 1"
Make change to my-config.toml
and reimport like above. Reviews are not overwritten.
I'm happy you want to contribute! PRs and issues are very welcome. Please create an issue before beginning to work on a PR so the changes can be discussed beforehand. Take a look at the CONTRIBUTING.md
for more info. Please take a look at the TODOs below if you need inspiration ;)
file --import
so that decks are mapped 1:1 into dbeasy
, hard
, ...