Last active
May 6, 2024 21:16
-
-
Save micaelviana/4e4ec4a44dd6cae32ace888d70312b5d to your computer and use it in GitHub Desktop.
Espanso triggers
This file contains hidden or 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!" | |
# My name | |
- trigger: ",,name" | |
replace: "Micael Viana Silva" | |
- trigger: ",,email" | |
replace: "[email protected]" | |
# Icomp | |
- trigger: ",,icomp" | |
replace: "[email protected]" | |
# Repository | |
- trigger: ",,repo" | |
replace: "https://github.com/micaelviana/" | |
# Github | |
- trigger: ",,hub" | |
replace: "https://github.com/" | |
# Windows path | |
- trigger: ",,win" | |
replace: "/mnt/c/Users/micae/" | |
# 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/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment