Very rarely, double-clicking to select a word tries to browse to that word in Safari.
This is a bizarre issue that crops up once every few weeks or so. It's so nonsensical that the first 5 times it happened I was sure I was imagining it, the next 15 times or so I was trying to work out exactly what the reproduction conditions are.
As weird as this sounds, I solemnly swear it is a real bug, I have seen it enough times to know I'm not insane, it's just rare and weird.
- I double-click to select some text. Every time I have reproduced the bug, the text I've selected is a git ref (hash or branch name). I haven't the foggiest idea if that is related somehow (how would iTerm2 know what I'm selecting?) or just if the only things I double-click are git refs (seems unlikely, I live in terminal) but I include this fact in the interests of full disclosure
- I intend to press Cmd-c to copy the text to my clipboard. But I'm pretty sure before I can complete that keystroke...
- Safari becomes the topmost window. Somehow the text I selected has become inserted into its address bar.
- Puzzlingly, Safari always treats this text as a URL, not a search string. As a result it is accompanied by a "cannot connect to server" message. I actually have no idea how this is even possible; if a human enters the same text there it's a search string. So I assume Safari's behavior is a result of some non-UX API call, but specifically what call and why iTerm2 calls it is left as an exercise to the reader.
Attaching some screenshots from the most recent repro. Again, this bug is very rare, I only seem to run into it when I'm copying git hashes to my clipboard (WHY THEN??) and all attempts to get this guy under a microscope have failed.
com.googlecode.iterm2.plist OSX 10.10.5 (14F27) iTerm2 Build 2.1.1