Lurker News
OSX Terminal: hold option and click a position in the current line to move your cursor to that position. #yearslost

Comments (395) 107 threads

Earlier comments
scottyallen#
This appears to work in iTerm2 as well. Neat!
khalidmbajwa#
Nothing will ever be the same again #HolyWow
beshrkayali6 replies#
Sucks that it doesn't work in iTerm2.
eddieroger1 reply#
Yes it does - I just tried it. Worked like a dream.
jkbr#
It does for me. iTerm2, build 1.0.0.20140112
jsilence#
It does in mine.
sgt#
Doesn't work in mine either (Build 1.0.0.20130319). So it appears that we just need to upgrade, as others report that it works in more recent versions.
jimhart30002 replies#
For some reason when I try this in iTerm2, it jumps to a different command in my history. No idea what's going on there...
kshay#
I saw this too... It looks like when you opt-click above the current line, it jumps back in your history by... the same number of lines as your cursor is above the current line? Sort of an unusual feature. Nevertheless, when I'm careful to actually click on the current line, it works as described.
gnachman#
Terminal does the same (for me). It's because opt-clicking above the line sends some up arrow keystrokes, which the shell interprets as moving back in history. In iTerm2 nightly builds (which are less stable than the betas) you can disable opt-click to move the cursor in prefs>profiles>pointer.

What's more interesting is the possibility of using the new shell integration features (https://code.google.com/p/iterm2/wiki/ShellIntegration) to turn off this feature just at the shell prompt. I'll open a feature request for that :)

jacobr#
Try alt instead of cmd.
Fishrock123#
... Why didn't I know this before?

Thanks for sharing!

Load more comments