Skip to content

Instantly share code, notes, and snippets.

@KnightChaser
Created March 7, 2023 13:58
Show Gist options
  • Save KnightChaser/da12d0d5bcbeb3449f776f7582d15176 to your computer and use it in GitHub Desktop.
Save KnightChaser/da12d0d5bcbeb3449f776f7582d15176 to your computer and use it in GitHub Desktop.
My personal base.yml file of espanso to supercharge my laptop usage experience. Optimized only for me.
# 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 time
- trigger: ":nowtime"
replace: "{{mytime}}"
vars:
- name: mytime
type: date
params:
format: "%H:%M:%S"
# Print the full time
- trigger: ":timefull"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%Y. %d. %m. %H:%M:%S"
# Print the current date
- trigger: ":date"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%Y. %d. %m."
# And much more! For more information, visit the docs: https://espanso.org/docs/
################################################################################
# For spanish typing without changing quotes
- trigger: ":a_a"
replace: "á"
- trigger: ":e_a"
replace: "é"
- trigger: ":i_a"
replace: "í"
- trigger: ":o_a"
replace: "ó"
- trigger: ":u_a"
replace: "ú"
- trigger: ":A_a"
replace: "Á"
- trigger: ":E_a"
replace: "É"
- trigger: ":I_a"
replace: "Í"
- trigger: ":O_a"
replace: "Ó"
- trigger: ":U_a"
replace: "Ú"
- trigger: ":n_cx"
replace: "ñ"
- trigger: ":N_a"
replace: "Ñ"
- trigger: ":?_rev"
replace: "¿"
- trigger: ":!_rev"
replace: "¡"
################################################################################
# frequently-used special characters
- trigger: ":arrow_right"
replace: "→"
- trigger: ":arrow_left"
replace: "←"
- trigger: ":arrow_up"
replace: "↑"
- trigger: ":arrow_down"
replace: "↓"
################################################################################
# custoomized
- trigger: ":eqsgshine"
replace: "=v=✨"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment