From fd7f8f1030ea30b6ef0816e37c4b1ce7c2245dda Mon Sep 17 00:00:00 2001 From: Katrin Leinweber <9948149+katrinleinweber@users.noreply.github.com> Date: Tue, 22 Jun 2021 20:07:44 +0200 Subject: [PATCH] Correct workaround for package path injection --- docs/packages.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/packages.md b/docs/packages.md index 5fecc61..46534d3 100644 --- a/docs/packages.md +++ b/docs/packages.md @@ -112,7 +112,8 @@ allowed) ### Scripts in packages [Script Extension](matches#script-extension) can also be added to packages. -Use a combination of the [CLI](cli#paths)'s `espanso path packages` output +Use a combination of the [Shell Extension](matches#shell-extension), +the [CLI](cli#paths)'s `espanso path packages` output, and your package's name to automatically construct the correct path: {% raw %} @@ -121,11 +122,9 @@ and your package's name to automatically construct the correct path: replace: "{{output}}" vars: - name: output - type: script + type: shell params: - args: - - python - - "$(espanso path packages)/simple-package/scripts/script.py" + cmd: "python "$(espanso path packages)"/simple-package/scripts/script.py' ``` {% endraw %}