federman / espanso-autocorrect-package

An example on how to create an espanso package

Home Page:https://espanso.org/docs/packages/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

espanso-autocorrect-package

A package to do auto correction of common English language mis-spellings.

Adapted from http://www.biancolo.com/blog/autocorrect/.

Also includes the regex needed to convert ahk hotstrings to work in espanso.

Converting ahk hotkey lists to work with espanso (yaml)

To convert an ahk hotkey list to espanso in Codium (VSCode)

  1. First, move any trailing comments to the previous line
    • find: ^(.*)\s{1,}(;.*)$
    • replace: \t$2\n$1
  2. Second, setup the triggers
    • find: ^:.{0,1}:(.*)::(.*)$
    • replace: \t- trigger: "$1"\n\t\treplace: "$2"\n

For more information, read the documentation

PR for espanso listing - espanso/espanso#561

About

An example on how to create an espanso package

https://espanso.org/docs/packages/