mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(espanso): add a basic setup for snippets with Espanso
This commit is contained in:
16
espanso/match/base.yml
Normal file
16
espanso/match/base.yml
Normal 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'"
|
||||
12
espanso/match/datetime.yml
Normal file
12
espanso/match/datetime.yml
Normal 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"
|
||||
9
espanso/match/japanese.yml
Normal file
9
espanso/match/japanese.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
matches:
|
||||
- trigger: "OO"
|
||||
label: Japanisches Längenzeichen Ō
|
||||
replace: "Ō"
|
||||
word: true
|
||||
- trigger: "oo"
|
||||
label: Japanisches Längenzeichen ō
|
||||
replace: "ō"
|
||||
word: true
|
||||
Reference in New Issue
Block a user