linank

Crates.iolinank
lib.rslinank
version1.0.0
sourcesrc
created_at2020-04-16 19:02:31.045104
updated_at2020-04-20 16:48:31.977738
descriptionSearch words on Linguee and add them to an Anki deck.
homepagehttps://gitlab.com/Maaxxs/linank
repositoryhttps://gitlab.com/Maaxxs/linank
max_upload_size
id230861
size671,425
Max Kunzelmann (Maaxxs)

documentation

https://docs.rs/linank

README

linank

Crates.io Rust Docs

Install

If you've got cargo installed

cargo install linank

You can also build it youself

git clone https://gitlab.com/Maaxxs/linank.git
cd linank/
cargo install --path .

Notes regarding Anki

  • You need the Anki Connect Addon installed
  • Anki needs to be running while you execute this program (the Anki Connect Addon is listening on localhost:8765)

Usage

Note: The deck name in Anki must already exist. Maybe I'll implement auto creation for non existent decks.

Note: At the moment the translation is english->german and hardcoded. That may change as well.

linank --help

Linank 0.1.0
Max Kunzelmann <maxdev@posteo.de>
Searches a tranlation at linguee.de and adds it to an Anki deck

USAGE:
    linank [OPTIONS] <QUERY>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -d, --deck-name <deck name>    The name of the deck in Anki to which the note should be added.

ARGS:
    <QUERY>    The word to translate

Example

$ linank precious
Suche: precious
Bedeutung als Adjektiv: "precious"
    kostbar
    edel
    wertvoll
Bedeutung als Substantiv: "precious"
    Liebling
Zu Anki hinzufügen?[Y/n]
$ linank "precious time"
Suche: precious time
Bedeutung als Substantiv: "precious time"
    kostbare Zeit
    wertvolle Zeit
Zu Anki hinzufügen?[Y/n]

Add the word to a different deck than Englisch.

$ linank -d TestDeck precious
Suche: precious
Bedeutung als Adjektiv: "precious"
    kostbar
    edel
    wertvoll
Bedeutung als Substantiv: "precious"
    Liebling
Zu Anki hinzufügen?[Y/n]

Linguee

I wrote this program only for personal use.

Plase read their Terms and Conditions and Privacy statement.

License

MIT

Commit count: 51

cargo fmt