My configuration for espanso (open-source text-expander) to quickly type/run different commands.
Note
This repository contains my macOS configuration and excludes private triggers. I also maintain a separate Windows-based configuration. The filter_os option isn't used to combine OS-specific configs because it conflicts with app-specific configurations.
- Install espanso.
- Place the contents of
config/andmatch/folders within your espanso config directory, which can be found withespanso path(typically:$HOME/Library/Application Support/espanso). - Start using espanso, e.g. by
- pressing
CMD+SHIFT+SPACEto display espanso search bar (list of all available commands in the current context). - typing
;eand pressing space to expand into"code ~/Library/Application\\ Support/espanso/"(for viewing/editing your espanso config in VS Code).
- pressing
See espanso.org/docs/ for the official documentation.
Generally, all the *.yml files attempt to be self-explanatory with a couple of file comments. I decided to expand everything after pressing space; however, you may also consider using word triggers.
List of match/ files:
_obsidian.yml- Obsidian snippets, e.g. for font coloring_terminal.yml- snippets that function only within iTerm, default macOS Terminal, Warp, or VS Code, e.g. for editing/syncing espanso config, or for file/folder searchbase.yml- default match filedocker.yml- Docker snippetsemojis.yml- commonly used emojisgit.yml- Git snippetskubernetes.yml- Kubernetes/kubectl snippetslanguages.yml- language accents (currently French and German)markdown.yml- Markdown snippetspersonal.yml- personal snippetsprompts.yml- AI prompt templatespython.yml- Python snippetssymbols.yml- special characters, e.g. dash, ellipsis, bullet point, left arrow, ...
Note
Some files may require custom edit (marked with ...).