espanso/espanso-migrate/test/form_syntax/legacy/default.yml

25 lines
441 B
YAML
Raw Normal View History

global_vars:
- name: global_form
type: form
params:
layout: |
Reverse {{name}}
matches:
- trigger: ":greet"
form: |
Hey {{name}},
Happy Birthday!
- trigger: ":rev"
replace: "{{reversed}}"
vars:
- name: form1
type: form
params:
layout: |
Reverse {{name}}
- name: reversed
type: shell
params:
cmd: "echo $ESPANSO_FORM1_NAME | rev"