Hyper: Certain Tmux Meta (Alt) key bindings don't work

Created on 17 Dec 2016  路  13Comments  路  Source: vercel/hyper

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: macOS 10.11.6
  • Hyper.app version: 1.0.1
  • Link of a Gist with the contents of your .hyper.js: https://gist.github.com/flybayer/422d38acfcde635a6d333a7f66179e04
  • Relevent information from devtools: N/A
  • The issue is reproducible in vanilla Hyper.app: Yes, but only when setting modifierKeys: {altIsMeta: true} since my tmux config depends on that

Issue

I have the following in my .tmux.conf:

bind -n M-i next-window
bind -n M-u previous-window
bind -n M-y last-window

When I have two windows open, Alt-y works to toggle the windows, but neither Alt-i or Alt-u do anything. No response, no errors. These key bindings work fine in other terminals, just not in Hyper.

Any ideas?

P.S. This has been broken for a long time. I'm not sure if it ever worked.

Compatibility

Most helpful comment

@ppot it works fine for me in iTerm2

But I just realized I have Option set as +Esc under Profiles > Keys
screen shot 2016-12-19 at 10 12 25 pm

It doesn't work if Option is set to Normal or Meta.

So, maybe we need to add the AltIsPlusEsc option to Hyper, or maybe there is a tmux workaround...

All 13 comments

@flybayer I think this is hterm related. Can you tell me how to set those keys in tmux and what they do? Il test it locally and see the problem.

@ppot

  1. Put those three bind lines from my last comment in ~/.tmux.conf
  2. Run tmux
  3. Press Ctrl-B followed immediately by c (to create a new "window" (essentially a tab))
  4. Then press Alt-i or Alt-u or Alt-y to switch between the tmux "windows".

Alright gonna try this! Il keep you posted

@flybayer To test I use iterm2. For me it just make the character 藛篓楼 inside tmux

@ppot it works fine for me in iTerm2

But I just realized I have Option set as +Esc under Profiles > Keys
screen shot 2016-12-19 at 10 12 25 pm

It doesn't work if Option is set to Normal or Meta.

So, maybe we need to add the AltIsPlusEsc option to Hyper, or maybe there is a tmux workaround...

@flybayer Can you share your .tmux.conf file - gist? My setup works fine with my config for being able to switch between panes and windows. Maybe it has something to do with you using alt while I use my binding ctrl+a and then | or - for splits, c for new window, and p for going between the windows.

@pertrai1 here's my tmux.conf. And yes, I think the meta key is the only one with problems.

@flybayer - I see the problem you are seeing as well when using meta. Like the tmux setup you have

I also have this same issue.

Same on Windows 10

re-confirming w/ Mint 19.1 (~Ubuntu 18.04) and hyper v. 3.0.2.

I used slightly different bindings (alt + arrow, e.g. M-Up, M-Left, etc.), but the issues seems to be the alt modifier not passing into tmux.

@ClaytonJY same here, alt not being passed to tmux (via ssh) even with altIsMeta setting.

I have same issues, Anybody found the solution?
My Alt+j key very rarely work accordingly. most of the time do not do anything.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aem picture aem  路  3Comments

rauchg picture rauchg  路  3Comments

daenuprobst picture daenuprobst  路  3Comments

legomushroom picture legomushroom  路  3Comments

leo picture leo  路  3Comments