Advertisement
smeech

Add text from file

Mar 21st, 2024 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.34 KB | Software | 0 0
  1. # From https://github.com/espanso/espanso/discussions/1908
  2.  
  3.   - trigger: :test
  4.     replace: "{{output}}"
  5.     vars:
  6.       - name: output
  7.         type: script
  8.         params:
  9.           args:
  10.            - python
  11.             - -c
  12.             - |
  13.               with open("/home/stephen/temp/br.txt", "r") as f:
  14.                 print(f.read())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement