I just learned that iTerm 2 supports semantic linking (at the time of this article I'm on 2.9.2). Now **any file path printed to the terminal can be
β+click to open the file in your default editor.**

Learn more: iTerm2 Documentation
(search in page forsemantic)