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:
@@ -11,6 +11,7 @@
|
||||
~/.config/alacritty: alacritty
|
||||
~/.config/base16-shell: .base16-shell
|
||||
~/.config/cava: cava
|
||||
~/.config/espanso: espanso
|
||||
~/.config/fish: fish
|
||||
~/.config/gh/config.yml: github/config.yml
|
||||
~/.config/karabiner: karabiner
|
||||
|
||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -8,3 +8,6 @@
|
||||
[submodule ".base16-shell"]
|
||||
path = .base16-shell
|
||||
url = https://github.com/chriskempson/base16-shell.git
|
||||
[submodule "private/espanso"]
|
||||
path = private/espanso
|
||||
url = git@github.com:kogakure/espanso-snippets.git
|
||||
|
||||
16
espanso/config/default.yml
Normal file
16
espanso/config/default.yml
Normal 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
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
|
||||
1
private/espanso
Submodule
1
private/espanso
Submodule
Submodule private/espanso added at 8f5afdadcc
Reference in New Issue
Block a user