From 436a4fcccfccee6c38c5148238afc76d965172a2 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Fri, 2 Jul 2021 18:37:50 +0200 Subject: [PATCH] config/espanso: new expensions --- .config/espanso/default.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.config/espanso/default.yml b/.config/espanso/default.yml index 9d89af8..5e2b750 100644 --- a/.config/espanso/default.yml +++ b/.config/espanso/default.yml @@ -3,7 +3,10 @@ matches: # Simple replacements - - trigger: ":regards" + - trigger: ":gr" + replace: "Grüße,\nJanek" + + - trigger: ":reg" replace: "Kind Regards,\nJanek" - trigger: ":date" @@ -64,6 +67,14 @@ matches: params: 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" replace: "{{output}}" vars: @@ -95,3 +106,19 @@ matches: type: shell params: 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"