Skip to content

Instantly share code, notes, and snippets.

@smeech
Last active May 3, 2025 21:10
Show Gist options
  • Select an option

  • Save smeech/3ad2754ec4d5b52a8a7b1affbf0b4f36 to your computer and use it in GitHub Desktop.

Select an option

Save smeech/3ad2754ec4d5b52a8a7b1affbf0b4f36 to your computer and use it in GitHub Desktop.
[Add text from file] #espanso #python
# From https://github.com/espanso/espanso/discussions/1908
matches:
- trigger: :test
replace: "{{output}}"
vars:
- name: output
type: script
params:
args:
- python
- -c
- print(open("/home/stephen/tmp.txt", "r").read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment