r/espanso

Match not activating as expected

  - trigger: PushPay
    replace: Pushpay
    word: true

I'm hoping for this to activate only exactly when the trigger is typed as is, but this replacement takes effect every time, it seems. The capitalization section in Matches Basics doesn't seem to offer a way around this. Does anyone know if this is solvable? Thanks!

reddit.com
u/Dymonika — 1 day ago

Short triggers not working on PC

Hi! New Espanso user here, so I'm pretty sure this is user error of some type.

I got it set up on my Mac just fine, customized the triggers and everything. Then I installed on my PC, and replaced the base.yml file with a copy of the one I had edited on my Mac (so that the triggers would all be the same). But the behavior is nowhere near as smooth.

I've gotten some longer multiline ones to work (although it brings up the annoying Windows clipboard history window, which I'd rather avoid altogether if possible), but short, single line triggers seem to fire successfully (i.e. the trigger itself gets deleted) and then get replaced with two spaces rather than what is written into the base.yml file.

I've tried:

  • Running as administrator
  • Using clipboard and inject backend settings
  • Adding an inject delay
  • Upping the clipboard threshold
reddit.com
u/BougieFruitLoops — 13 days ago

Case insensitive matches

I personally believe this should be posted in the docs for all the anxious people that forget about the caps lock key, the easy way to make case insensitive matches that I found after reading around is:

Instead of using:

- trigger: :mymatch

replace mytext

use:

- regex: (?i):mymatch

replace: mytext

I swapped most the matches i use to that and works like a charm and seriously believe it should be part of the docs BEFORE sending you down the rabbit hole of regex.

reddit.com
u/C4ingu — 13 days ago