Replies: 1 comment 1 reply
-
Does the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a lot of triggers I use only in the terminal with a
filter_class
, but some of them can also be expended in another command I ran caused the abbreviation I use is detected. As an example, I have the triggerbs
which could be expanded when I don't want to if I use a command, let's say, that istabs
since the lettersbs
is intabs
. You get the point...To solve this issue, I use a regex instead of a trigger. It is working to prevent the case mentioned above, but it doesn't always work. Sometimes Espanso doesn't detect it, and I can't put my hand on what is preventing it on some new prompt in the Terminal (I'm using iTerm2). Actually, I say Espanso, but it may just be anything on the prompt that can prevent the regex to be valid...
I was wondering if it was about an exit code from the previous command, some invisible characters, my prompt characters or shell configuration (Zsh with OMZ) or even if my regex wasn't valid (using
[^ a-z]
before the abbreviation I want to use). I tried multiple regex variations that could achieve the same goal, and it's the simplest I came up with which is working in most cases.When the issue happens, I just
CTRL + C
to cancel the actual terminal prompt, and move to a new one. See for yourselfCleanShot.2023-10-11.at.16.13.14.mp4
Any idea what is happening, and how to fix that? It's been a while I wanted to ask, so I'm starting to get used to CTRL+C often, but would really love to solve this problem :)
Beta Was this translation helpful? Give feedback.
All reactions