Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One of the best little-known features of iTerm2 is Semantic History. Cmd-click on filenames and they will be opened by the default application (or you can configure an action to be performed). It's working directory aware and works great with all output. I connected it to Sublime and it even works with line numbers.

(Same works for URLs, with the default browser)



Holy crap, that's amazing. I had no idea, thanks for spreading the word.


Wow I just posted about this[1] as some hypothetical "dream feature" but it already exists. I don't use iTerm2 (or OS X, for that matter), but I'm wondering now if other terminals support it in some way or another...

[1]: https://news.ycombinator.com/item?id=9508828


This exists in a few linux terminal shells. Notably, gnome-terminal.


I wish that I could have iTerm2 for windows (where I use conemu) and Linux (guake has similar features, but an alien ui imho)... I tend to really like tabbed console sessions, and usually have a few local and ssh sessions open at a time while working.


Unfortunately using tmux breaks that behavior.


I believe you can still achieve this with tmux by using Command+Option+Click.


Really late, but thanks! It works!


I run tmux and I can CMD+Click hyperlinks and filereferences with linenumbers. I just upgraded to 2.0, maybe you could try that too.


Thanks! You made me very glad I came to the comments section.


Holy crap


Kudos, never knew that!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: