Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modifierKeys altIsMeta on Canary 9 build #2578

Closed
2 tasks done
saamalik opened this issue Jan 10, 2018 · 7 comments · Fixed by #2623
Closed
2 tasks done

modifierKeys altIsMeta on Canary 9 build #2578

saamalik opened this issue Jan 10, 2018 · 7 comments · Fixed by #2623
Labels
🐛 Type: Bug Issue pertains to something wrong within Hyper

Comments

@saamalik
Copy link
Contributor

saamalik commented Jan 10, 2018

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate * (there were but closed now)

HI guys,
I'm on the latest canary.9 build of hyper. Unfortunately, the altIsMeta modifier is not working as expected. Whenever the key combinations alt+f (move word forward), alt+. (last argument of the previous command) are pressed, some random silly looking special character is added.

I'm on Mac OSX and trying to use the Option button as the alt key. Here is the relevant section from the .hyper.js:

module.exports = {
  config: {
    modifierKeys: { altIsMeta: true },
...
}
@saamalik
Copy link
Contributor Author

Related bugs:
#330 (Closed now)
#2251

@saamalik
Copy link
Contributor Author

Can anyone else please confirm the same issue?

@albinekb
Copy link
Contributor

Hello @saamalik! This is probably due to the upgrade of the terminal rendering/handling lib xterm to the latest v3. I don't know exactly why this has stopped working but thanks for reporting!

@saamalik
Copy link
Contributor Author

Corresponding issue on underlying terminal: xtermjs/xterm.js#487

@saamalik
Copy link
Contributor Author

Found a temporary solution. Add the following to your ~/.inputrc file:

"ƒ": forward-word
"∫": backward-word
"≥": yank-last-arg

And restart your terminal (or run bind -f ~/.inputrc). It's a temporary solution since still other bashrc shortcuts do not work (e.g: alt+1, alt+2, ..). Hopefully a more generic solution is found.

@saamalik
Copy link
Contributor Author

saamalik commented Jan 19, 2018

@albinekb proposed fix in underlying xterm.js library: Mac OSX: altIsMeta support

@albinekb
Copy link
Contributor

A w e s o m e work @saamalik 🙏 😍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Issue pertains to something wrong within Hyper
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants