Have match exec cli return a failure on a bad trigger #1630
bhansconnect
started this conversation in
Feature requests and Ideas
Replies: 1 comment
-
This could, indeed, be useful. At the moment, the best you get is a warning in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently if you send a trigger to the match exec cli that is not defined, the script will just do nothing. It would be nice if it could also exit with a nonzero exit code. That way you could recognize the failure and do something in response.
So if I have
:espanso
->hello world
as my only trigger and I runespanso match exec -t ":somethingWrong"
it would give me a non-zero exit code.Then It would be possible to make scripts that run a trigger or print out the original text, for example:
espanso match exec -t $1 || echo $1
Beta Was this translation helpful? Give feedback.
All reactions