Skip to content

Instantly share code, notes, and snippets.

@finmoorhouse
Created November 21, 2023 13:07
Show Gist options
  • Save finmoorhouse/ea287ab5743a640ae6459449555c4b55 to your computer and use it in GitHub Desktop.
Save finmoorhouse/ea287ab5743a640ae6459449555c4b55 to your computer and use it in GitHub Desktop.
Espanso ideas
# espanso match file
# For a complete introduction, visit the official docs at: https://espanso.org/docs/
# You can use this file to define the base matches (aka snippets)
# that will be available in every application when using espanso.
# Matches are substitution rules: when you type the "trigger" string
# it gets replaced by the "replace" string.
# Print the current date
- trigger: ":day"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%Y-%m-%d"
- trigger: ":now"
replace: "*{{mytime}}*"
vars:
- name: mytime
type: date
params:
format: "%A, %B %e, %G, %I:%M %P"
# Print the output of a shell command
- trigger: ":shell"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "echo 'Hello from your shell'"
# Symbols
- trigger: ":->"
replace: "→"
- trigger: ":<->"
replace: "⭤ "
- trigger: ":approx"
replace: "≈"
- trigger: ":geq"
replace: "⩾"
- trigger: "leq"
replace: "⩽"
- trigger: ":>="
replace: "≥"
- trigger: ":<="
replace: "≤"
- trigger: ":ergo"
replace: "∴"
- trigger: ":right"
replace: "→"
- trigger: ":left"
replace: "←"
- trigger: ":up"
replace: "↑"
- trigger: ":down"
replace: "↓"
- trigger: ":tick"
replace: "✓"
- trigger: ":cross"
replace: "✗"
- trigger: ":diag"
replace: "↗"
- trigger: ":times"
replace: "×"
- trigger: ":neq"
replace: "≠"
# Personal information and links
- trigger: ":em"
replace: "[your email]"
- trigger: ":me"
replace: "[your name]"
# Words and phrases
- trigger: ":shrug"
replace: "¯\\_(ツ)_/¯"
- trigger: "yday"
replace: "yesterday"
- trigger: ":bn"
replace: "Best,\n[Your name]"
- trigger: ":lorem"
replace: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
# Dev
- trigger: ":dev"
replace: "http://localhost:8080/"
# Sites
- trigger: ":docs"
replace: "docs.google.com/document/u/0/"
- trigger: ":sheets"
replace: "docs.google.com/spreadsheets/u/0/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment