Home

Awesome

thokr

✨ sleek typing tui with visualized results and historical logging

GitHub Build Workflow GitHub Deploy Workflow License Crate Version Github Stars

demo

Usage

For detailed usage run thokr -h.

thokr 0.4.1
sleek typing tui with visualized results and historical logging

USAGE:
    thokr [OPTIONS]

OPTIONS:
    -f, --full-sentences <NUMBER_OF_SENTENCES>
            number of sentences to use in test

    -h, --help
            Print help information

    -l, --supported-language <SUPPORTED_LANGUAGE>
            language to pull words from [default: english] [possible values: english, english1k,
            english10k]

    -p, --prompt <PROMPT>
            custom prompt to use

    -s, --number-of-secs <NUMBER_OF_SECS>
            number of seconds to run test

    -V, --version
            Print version information

    -w, --number-of-words <NUMBER_OF_WORDS>
            number of words to use in test [default: 15]

Installation

Cargo

$ cargo install thokr

Docker

$ docker run -it thatvegandev/thokr

Arch Linux

Install thokr-git from the AUR

Usage

For detailed usage run thokr -h.

Examples

commandtest contents
thokr50 of the 200 most common english words
thokr -w 100100 of the 200 most common English words
thokr -w 100 -l english1k100 of the 1000 most common English words
thokr -w 10 -s 510 of the 200 most common English words (hard stop at 5 seconds)
thokr -p "$(cat foo.txt)"custom prompt with the output of cat foo.txt
thokr -f 44 grammatical sentences with full stops; overrides word settings

During a test you can press ← to start over or → to see a new prompt (assuming you didn't supply a custom one)

Supported Languages

The following languages are available by default:

namedescription
english200 most common English words
english1k1000 most common English words
english10k10000 most common English words

Logging

Upon completion of a test, a row outlining your results is appended to the log.csv file found in the following platform-specific folders. This way you can easily track your progress over time.

platformvalueexample
Linux$XDGCONFIG_HOME/_project_path or $HOME/.config/project_path/home/colby/.config/thokr
macOS$HOME/Library/Application Support/project_path/Users/Colby/Library/Application Support/thokr
Windows{FOLDERIDRoamingAppData}_project_path\configC:\Users\Colby\AppData\Roaming\thokr\config

Roadmap

Contributing

All contributions are greatly appreciated.

If you have a suggestion that would make thokr better, please fork the repo and create a pull request. You can also simply open an issue and select Feature Request

  1. Fork the repo
  2. Create your feature branch (git checkout -b [your_username]/xyz)
  3. Commit your changes (git commit -m 'add some xyz')
  4. Rebase off main (git fetch --all && git rebase origin/main)
  5. Push to your branch (git push origin [your_username]/xyz)
  6. Fill out pull request template

See the open issues for a full list of proposed features (and known issues).

License

Distributed under the MIT License. See LICENSE.md for more information.

Acknowledgments

Check out these amazing projects that inspired thokr!

Follow

github twitter youtube