Insert timestamp anywhere using Espanso

I wrote about Espanso long time ago. I have been using Espanso since then.

Recently, I had a need to add timestamp in a note. Espanso already comes with a trigger to insert date via :date. As the name suggest, it just inserts the date.

So I added the following to the match/base.yml file.

  - trigger: ":timestamp"
    replace: "{{timestamp}}"
      - name: timestamp
        type: date
          format: "%b %d, %Y %I:%M%p"

As might be obvious, now I get timestamp just by typing :timestamp anywhere.

If you are unsure where the file is located, refer to the documentation