mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 20:29:47 +01:00
ee8ff6d53f
Recent nixpkgs update made a small change how YAML is generated, causing the test YAML to be out of date. The replacement match is also an exact example from the espanso wiki https://espanso.org/docs/matches/basics/#multi-line-expansions.
16 lines
311 B
YAML
16 lines
311 B
YAML
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}}!
|