feat(espanso): add a basic setup for snippets with Espanso

This commit is contained in:
Stefan Imhoff
2022-12-23 18:47:54 +01:00
parent f353546a59
commit 5c48453bdd
7 changed files with 58 additions and 0 deletions

16
espanso/match/base.yml Normal file
View File

@@ -0,0 +1,16 @@
imports:
- "../../private/espanso/finance.yml"
matches:
# Simple text replacement
- trigger: ":espanso"
replace: "Hello World"
# Print the output of a shell command
- trigger: ":shell"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "echo 'Hello from your shell'"

View File

@@ -0,0 +1,12 @@
matches:
- trigger: ":ddt"
replace: "datetime"
# Print the current date
- trigger: ":date"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%m/%d/%Y"

View File

@@ -0,0 +1,9 @@
matches:
- trigger: "OO"
label: Japanisches Längenzeichen Ō
replace: "Ō"
word: true
- trigger: "oo"
label: Japanisches Längenzeichen ō
replace: "ō"
word: true