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

View File

@@ -11,6 +11,7 @@
~/.config/alacritty: alacritty ~/.config/alacritty: alacritty
~/.config/base16-shell: .base16-shell ~/.config/base16-shell: .base16-shell
~/.config/cava: cava ~/.config/cava: cava
~/.config/espanso: espanso
~/.config/fish: fish ~/.config/fish: fish
~/.config/gh/config.yml: github/config.yml ~/.config/gh/config.yml: github/config.yml
~/.config/karabiner: karabiner ~/.config/karabiner: karabiner

3
.gitmodules vendored
View File

@@ -8,3 +8,6 @@
[submodule ".base16-shell"] [submodule ".base16-shell"]
path = .base16-shell path = .base16-shell
url = https://github.com/chriskempson/base16-shell.git url = https://github.com/chriskempson/base16-shell.git
[submodule "private/espanso"]
path = private/espanso
url = git@github.com:kogakure/espanso-snippets.git

View File

@@ -0,0 +1,16 @@
# Toggle key
toggle_key: RIGHT_ALT
search_shortcut: ALT+SHIFT+SPACE
# Injection Backend
backend: Clipboard
# Auto-restart
auto_restart: true
# Clipboard threshold
clipboard_threshold: 100

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

1
private/espanso Submodule

Submodule private/espanso added at 8f5afdadcc