Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 1.49 KB

README.md

File metadata and controls

30 lines (16 loc) · 1.49 KB

AHK-auto-complete

Use AHK to suggest and complete words from a trained dictionary as you type. Press CapsLock + Space as you type for enable the current writing word prediction!

This is a revisited version of the Uberi AHK script Uberi - Autocomplete

This script bases its operation on the python library autocomplete, by default it uses a simple pre-trained model for the English language. See its documentation if you are interested in training on your corpus.

Usage

  1. Install the autocomplete & bottlepy python library

    pip install autocomplete

    pip install bottle

  2. (optional) Train the autocomplete model with your documents to improve the accuracy and quality of predictions.

  3. Run the autocomplete server

    python run_server.py

  4. You can now through a GET request ask for a prediction. The request format is http://localhost:8080/<text>

  5. Run the AHKautocomplete.ahk script and press CapsLock + Space as you type for enable the current writing word prediction.

example

  1. Use the Up and Down arrow keys to select an entry if the currently selected one is not the desired word.
  2. Press Enter or Tab to trigger the completion with the currently selected word. Alternatively, press one of Alt + 1, Alt + 2, ..., Alt + 9, Alt + 0 to trigger completion with the 1st, 2nd, ..., 9th, and 10th word, repectively.