I'm using iTerm2 with a Tmux session connecting to localhost Tmux server. On a normal iTerm2 window/tab, I can use Cmd + Click
to open a file with its default app. However, it's not working in the Tmux session. Instead of opening the file in its default app, iTerm2 always opens it as a URL, in the default browser.
Does anyone know a fix to this? Or I'm having something wrong with my Tmux configuration?
I found the answer on apple.stackexchange.com:
To use the normal mouse behavior in
tmux
you have to keepalt
pressed. So click on the link while pressingcmd
+alt
. The same applies when selecting text.
Source: https://apple.stackexchange.com/a/147129/111777
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With