Semantic history fails when clicking on colored text
/Users/Vaughan/bin/iterm_open_with \5 \1 \2 \3 \4
“/bin/sh -c /Users/Vaughan/bin/iterm_open_with /foo/bar '\'tests/e2e/features/environment.py:104\'' $' -> \x27stdout.write\x27 called from \x27tests/e2e/features/environment' $'.py:104\x27 '”
/bin/sh: -c: line 0: unexpected EOF while looking for matching `'' /bin/sh: -c: line 1: syntax error: unexpected end of file
Is there a good way to escape this string?