I don't think you need to patch iTerm2, by the way. You could use a Trigger [0] to do it, or a python script [1] if you need something fancier.
[0] https://www.iterm2.com/documentation-triggers.html
[1] https://www.iterm2.com/python-api/
I don't think you need to patch iTerm2, by the way. You could use a Trigger [0] to do it, or a python script [1] if you need something fancier.
[0] https://www.iterm2.com/documentation-triggers.html
[1] https://www.iterm2.com/python-api/