Hyper: No way to select text when mouse aware app is being run

Created on 6 May 2019  Â·  1Comment  Â·  Source: vercel/hyper

Verified with fresh 3.0.0, but it's been here for a while — since some previous release.

It's typical for terminal emulators to allow user to bypass mouse awareness of an app with using modifier when selecting text, typically it's Alt (iTerm2 does so), or Shift (most of Linux terminals do). MacOS native Terminal provides a shortcut to turn on/off mouse bypass (Cmd_R, IIRC).

How to check: running tmux probably is the most simple way. Trying to select text there would be handled by tmux itself, not by Hyper.

Most helpful comment

I had this issue and it seems you can fix it by adding this to your .hyper.js:

macOptionSelectionMode: 'force',

This forces the terminal to select the text when using ALT, and that works on tmux. But be aware you'll lose the ability to select text vertically (provided with the default macOptionSelectionMode: 'vertical'. Worth it in my opinion, as I never use that.

>All comments

I had this issue and it seems you can fix it by adding this to your .hyper.js:

macOptionSelectionMode: 'force',

This forces the terminal to select the text when using ALT, and that works on tmux. But be aware you'll lose the ability to select text vertically (provided with the default macOptionSelectionMode: 'vertical'. Worth it in my opinion, as I never use that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eoinmurray picture eoinmurray  Â·  3Comments

dbkaplun picture dbkaplun  Â·  3Comments

rauchg picture rauchg  Â·  3Comments

sarneeh picture sarneeh  Â·  3Comments

cooperpellaton picture cooperpellaton  Â·  3Comments