diff --git a/.config/espanso/match/base.yml b/.config/espanso/match/base.yml index f2c2917f..89d956f5 100644 --- a/.config/espanso/match/base.yml +++ b/.config/espanso/match/base.yml @@ -175,6 +175,16 @@ matches: force_clipboard: true replace: "$$ x = \\frac{-(b) \\pm \\sqrt{(b)^2 - 4(a)(c)}}{2(a)} $$" + # prints out latex piecewise function + - trigger: ";piece" + force_clipboard: true + replace: "{{output}}" + vars: + - name: output + type: shell + params: + cmd: "~/scripts/piecewise ; echo ''" + - trigger: ";