Autocorrector
β What is it?
Autocorrector is a tool similar to Autokey or AutoHotKey, but targeted mainly at word replacements. I wrote it because all I wanted to do was fix my fat-finger typos automatically. That is what autocorrector aims to do.
Autocorrector reads a TOML configuration file of key-values; the key being the typo and the value being the replacement. When it detects you have entered a typo, it helpfully corrects it.
β¬οΈ Installation
Note
This program will only run on Linux
- Download either the
.rpm
or .deb
file and install using your package manager.
- Set up the client:
autocorrector client setup
- Set up the server:
sudo autocorrector enable $USERNAME
(substitute $USERNAME
for your username)
- Start the service with
systemctl start autocorrector@USERNAME
.
- Run
autocorrector client
or use the autocorrector menu entry in your desktop environment.
π Configuration and additional details
See USAGE
π§βπ€βπ§ Contributing
I would welcome your contribution! If you find any improvement or issue you want
to fix, feel free to send a pull request!
π Acknowledgements
The following Go libraries and tools made autocorrector infinitely easier:
- gokbd: library using libevdev to talk to a keyboard on Linux. It allows snooping the keys pressed as well as typing out keys.
- fyne: UI toolkit and system tray library.
- zerolog: logging library.
- Viper: configuration file handling.
- Cobra: command-line interface.
- nutsdb: simple, fast, embeddable and persistent key/value store written in pure Go.
Check out more awesome Go things at the Awesome Go List:
The default list of replacements is sourced from the following AutoHotKey script containing common English typos and misspellings:
Icon taken from here.
License
Apache 2.0