A compilation of Espanso scripts that exemplify its syntax, from the documentation and my own uses
# Simple text replacement
- trigger: ":espanso"
replace: "Hi there!"
- trigger: ":quote"
replace: ""
vars:
- name: output
type: choice
params:
values:
- "Every moment is a fresh beginning."
- "Everything you can imagine is real."
- "Whatever you do, do it well."
# Print the output of a shell command
- trigger: ":shell"
replace: ""
vars:
- name: output
type: shell
params:
cmd: "echo 'Hello from your shell'"
- trigger: ":a"
replace: "<a href='' />$|$</a>"
vars:
- name: "clipboard"
type: "clipboard"
- regex: ":greet\\((?P<person>.*)\\)"
replace: "Hi !"
To add more config files instead of depending on base.yml, you can add them to your user folder and include the lines
name: $A_NAME
parent: default
At the top.