1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-11 20:39:49 +01:00
home-manager/tests/modules/services/espanso/basic-matches.yaml

17 lines
311 B
YAML
Raw Normal View History

global_vars:
- name: currentdate
params:
format: '%d/%m/%Y'
type: date
- name: currenttime
params:
format: '%R'
type: date
matches:
- replace: It's {{currentdate}} {{currenttime}}
trigger: :now
- replace: "line1\nline2"
trigger: :hello
- regex: :hi(?P<person>.*)\.
replace: Hi {{person}}!