mecano

Crates.iomecano
lib.rsmecano
version0.2.2
sourcesrc
created_at2024-09-03 19:35:30.672015
updated_at2024-09-06 14:56:36.975921
descriptionA minimalist typing test
homepage
repositoryhttps://github.com/alvarojsino813/mecano
max_upload_size
id1362008
size92,484
Álvaro Jesús Baena Rosino (alvarojsino813)

documentation

README

Mecano

A minimalist typing test.

Live Preview

Installation

You can install it with any AUR package manager, like yay:

AUR

yay -Sy mecano

Cargo

cargo install mecano

This way the executable will be installed at ~/.cargo/bin/mecano.

You can add that path to your paths. Example for linux:

In .bashrc:

export PATH="$HOME/.cargo/bin:$PATH"

Usage

Just execute and type!

Mecano, a typing train

Usage: mecano [OPTIONS] [FLAGS]

OPTIONS:
-f, --file <FILE>           Plays using the chosen file or dictionary
-m, --mode <MODE>           Plays the chosen mode
-r, --rate <RATE>           Plays with the chosen rate. This affects time measures accuracy. The higher the better.
-t, --time <SECS>           Choose the game time in seconds

FLAGS:
-h, --help                  Print help
-v, --version               Print version 
    --list-dictionaries     List all dicitonaries. You can add more at ~/.config/mecano/dictionaries
    --list-modes            List all available modes

Tip: You can change the TextBox size using the arrow keys.

Configuration

You can change some default values like the theme, the time or some starting values at ~/.config/mecano/config.toml.

# Maximum width of each line
width = 80

# Game time for the test
max_time = 60

# Max lines shown
lenght = 2

# File from which words are taken
file = "100_english"

# Play mode. [ dictionary | file ]
mode = "dictionary"

# update rate: 1000 suggested value
rate = 1000

# Color theme (more coming soon)
[theme] # Uncomment this line to change theme

# Selected char color
selected = "#888888"

# Wrong char color
wrong = "#FF8888"

# Right char color
right = "#44FF44"
  • Modify the configuration file in ~/.config/mecano/mecano.toml

  • Add more dictionaries at ~/.config/mecano/dictionaries/

  • Use any file on your system

Coming soon

  • A Wikipedia mode. It takes a random article from wikipedia and you complete it.
  • A command mode. The std of a command will be taken by mecano and given to you as text to complete.
  • More customization. Border colors, hiding or showing them...
  • Even more customization. Full control over the layout in-game.
  • Some fanciness. A title screen.
  • Stats. More descriptive stats about your test.
  • Better CLI. Autocomplete.
Commit count: 0

cargo fmt