iTerm profile triggers sometimes miss

270 views
Skip to first unread message

Nick Fulton

unread,
Sep 26, 2016, 8:54:02 AM9/26/16
to iterm2-discuss
iTerm2 version 3.0.9
OS X version 10.11.6 

I set an iTerm trigger to play system sound Basso.aiff whenever the string "Pos" appears in a log I tail. It works, but not 100% of the time and seems to miss some instances of when "Pos" prints.  I reported it as a bug but maybe it is an error on my part?  Might anyone know a better solution?   Thank you!  -Nick

Triggers:
Regular Expression = Pos
Action = Run Command...
Parameters = afplay -v 0.05 /System/Library/Sounds/Basso.aiff

George Nachman

unread,
Sep 29, 2016, 8:17:23 PM9/29/16
to iterm2-...@googlegroups.com
Looks like you did it correctly. It might not fire on very long lines; triggers only search three display lines. To search more, you can increase Prefs > Advanced > Number of screen lines to match against trigger regular expressions. I'll follow up in the issue. If you didn't, please attach a debug log that reproduces the issue.

CONFIDENTIALITY WARNING: This email including any attachments may contain privileged or confidential information and is for the sole use of the intended recipient(s). Any unauthorized use or disclosure of this communication is prohibited. This e-mail may also be subject to specific non-disclosure and confidentiality provisions. The information contained herein is the property of Integral Technology LLC. If you believe that you have received this email in error, please notify the sender immediately and delete it from your system.

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages