Espanso: Cross-platform paths in ScriptExtension (Part II)

Created on 19 Jul 2020  路  2Comments  路  Source: federico-terzi/espanso

Maybe I missed this somewhere but i could not find it while digging though the code. It would be great to get %CONFIG% and %PACKAGES% macro (or whatever we are calling this) like in the %HOME% macro in issue #265

I think this would make script execution easier for packages. Like this:

name: "My awesome package"
parent: default

matches:
  - trigger: ":map"
    replace: "{{output}}"
    vars:
      - name: output
        type: script
        params:
          args:
            - sh
            - "%PACKAGES%/my-awesome-package/script.sh"
Feature RFNR

Most helpful comment

Hey,

This seems like a good suggestion indeed, I'll add it to the roadmap.

Thanks for your help :)

All 2 comments

Hey,

This seems like a good suggestion indeed, I'll add it to the roadmap.

Thanks for your help :)

Just wanted to say this is coming in the upcoming release!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hos4m picture hos4m  路  3Comments

not-AMM picture not-AMM  路  4Comments

Tzahreddin picture Tzahreddin  路  3Comments

pedrorrivero picture pedrorrivero  路  6Comments

herrowna picture herrowna  路  5Comments