Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Keep Newlines In Espanso

This is an example of allowing extra newlines at the end of a espanso expansion script by turning off `trim`

Code

# Grimoire Post Template
- trigger: "post;"
  replace: "{{output}}"
  vars:
    - name: output
      type: script 
      params:
        args:
          - bash
          - "%CONFIG%/scripts/post.espanso"
        trim: false

via: https://newreleases.io/project/github/federico-terzi/espanso/release/v0.4.1