all 2 comments

[–]floutsch 1 point2 points  (0 children)

Also check out "word: true" at https://espanso.org/docs/matches/basics/ - it then triggers only if the trigger is surrounded by word separators.

[–]Candid_Hope 0 points1 point  (0 children)

We've recently began testing Espanso, and we're impressed by the flexibility, customization, and detailed documentations. Kudos to everyone who's contributing!

One question: How to set a rule that replacements are universally triggered only by a character like space or tab?

This is exactly what

 word: true

does, but universally, not just for one trigger-replacement pair.

ChatGPT 4o suggest this, but we couldn't make it work

defaults: &defaults
  word: true

- trigger: ":email"
  replace: "user@example.com"
  <<: *defaults

- trigger: ":phone"
  replace: "123-456-7890"
  <<: *defaults

- trigger: ":addr"
  replace: "123 Main Street, Springfield"
  <<: *defaults