hyper: Can't alt click to move cursor

Terminal app on mac has a nice feature where you can alt + click to move the cursor to a position. This does not work in Hyperterm.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 36
  • Comments: 24 (7 by maintainers)

Most upvoted comments

@pdufour by just looking through hyperterm issues my mind gets blown by the crazy time saving things I didn’t know about iTerm and mac terminal. Thanks for sharing 😉 +1

And we merged it today, coming in the next version 😃

Ok guys here we go: https://github.com/adamscybot/hyper-alt-click

It’s a giant hack, and probably buggy, but I just needed this feature. Very experimental at this stage, hopefully room for improvement. Especially support in Vim/Nano etc.

Completely untested on everything but my mac…

Ok, I have a working solution inside a plugin that is very very hacky. As mentioned, the lack of spans to detect click event makes this very tricky. I think proper support would need to be integrated into hyper itself. Or an improved plugin API.

Regardless, I know it will help some people so I will finish it off this week and publish (hopefully tomorrow evening, GMT).

Update: There’s a PR in xterm for this feature https://github.com/xtermjs/xterm.js/pull/896