config/espanso: new expensions

This commit is contained in:
xeruf 2021-07-02 18:37:50 +02:00
parent dc9f227c34
commit 436a4fcccf
1 changed files with 28 additions and 1 deletions

View File

@ -3,7 +3,10 @@
matches: matches:
# Simple replacements # Simple replacements
- trigger: ":regards" - trigger: ":gr"
replace: "Grüße,\nJanek"
- trigger: ":reg"
replace: "Kind Regards,\nJanek" replace: "Kind Regards,\nJanek"
- trigger: ":date" - trigger: ":date"
@ -64,6 +67,14 @@ matches:
params: params:
cmd: "pass information/address | head -2 | tail -1" cmd: "pass information/address | head -2 | tail -1"
- trigger: ":as"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass information/address | head -2 | tail -1 | cut -d' ' -f1"
- trigger: ":a2" - trigger: ":a2"
replace: "{{output}}" replace: "{{output}}"
vars: vars:
@ -95,3 +106,19 @@ matches:
type: shell type: shell
params: params:
cmd: "pass information/social-security | head -1" cmd: "pass information/social-security | head -1"
- trigger: ":ep"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass information/email/personal"
- trigger: ":sign"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass information/signature"