Last active
October 31, 2023 16:51
-
-
Save luckyshot/0cc362020d55efa6d4d9a297ec9a61b5 to your computer and use it in GitHub Desktop.
Xavi Esteve's Espanso config file (Linux: ~/.config/espanso/match/base.yml // Mac: ~/Library/Preferences/espanso/default.yml)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |
matches: | |
# # Simple text replacement | |
# - trigger: ":espanso" | |
# replace: "Hi there!" | |
# # NOTE: espanso uses YAML to define matches, so pay attention to the indentation! | |
# # But matches can also be dynamic: | |
# # Print the current date | |
# - trigger: ":date" | |
# replace: "{{mydate}}" | |
# vars: | |
# - name: mydate | |
# type: date | |
# params: | |
# format: "%m/%d/%Y" | |
# # Print the output of a shell command | |
# - trigger: ":shell" | |
# replace: "{{output}}" | |
# vars: | |
# - name: output | |
# type: shell | |
# params: | |
# cmd: "echo 'Hello from your shell'" | |
# # And much more! For more information, visit the docs: https://espanso.org/docs/ | |
# Xavi snippets | |
- trigger: ",a" | |
replace: "á" | |
propagate_case: true | |
- trigger: ",,a" | |
replace: "à" | |
propagate_case: true | |
- trigger: ",,,e" | |
replace: "€" | |
- trigger: ",e" | |
replace: "é" | |
propagate_case: true | |
- trigger: ",,e" | |
replace: "è" | |
propagate_case: true | |
- trigger: ",i" | |
replace: "í" | |
propagate_case: true | |
- trigger: ",o" | |
replace: "ó" | |
propagate_case: true | |
- trigger: ",,o" | |
replace: "ò" | |
propagate_case: true | |
- trigger: ",,,o" | |
replace: "º" | |
- trigger: ",u" | |
replace: "ú" | |
propagate_case: true | |
- trigger: ",n" | |
replace: "ñ" | |
propagate_case: true | |
- trigger: ",c" | |
replace: "ç" | |
propagate_case: true | |
- trigger: ",." | |
replace: "·" | |
- trigger: ",!" | |
replace: "¡" | |
- trigger: ",?" | |
replace: "¿" | |
- trigger: ",x" | |
replace: "×" | |
- trigger: "xD" | |
replace: "😂" | |
- trigger: ":D" | |
replace: "😄" | |
- trigger: ":)" | |
replace: "😊" | |
- trigger: ":'(" | |
replace: "😢" | |
- trigger: ":''(" | |
replace: "😭" | |
- trigger: ":o" | |
replace: "😮" | |
word: true | |
- trigger: ":o" | |
replace: "😱" | |
word: true | |
- trigger: ":s" | |
replace: "😧" | |
word: true | |
- trigger: ":S" | |
replace: "😵" | |
word: true | |
- trigger: "B)" | |
replace: "😎" | |
word: true | |
- trigger: ":*" | |
replace: "😘" | |
word: true | |
- trigger: ":P" | |
replace: "😜" | |
word: true | |
- trigger: "<3" | |
replace: "😍" | |
word: true | |
- trigger: "<!>" | |
replace: "⚠️" | |
- trigger: ":+1" | |
replace: "👍" | |
- trigger: ":*:" | |
replace: "⭐" | |
- trigger: "date(" | |
replace: "date('Y-m-d H:i:s')" | |
- trigger: "2023-" | |
replace: "{{output}}" | |
vars: | |
- name: output | |
type: shell | |
params: | |
cmd: "date +'%Y-%m-%d %H:%M:%S'" | |
- trigger: ":ip" | |
replace: "{{output}}" | |
vars: | |
- name: output | |
type: shell | |
params: | |
cmd: "curl 'https://api.ipify.org'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment