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

Send escape for option (MacOS/OSX) #330

Closed
curioussavage opened this issue Jul 21, 2016 · 19 comments
Closed

Send escape for option (MacOS/OSX) #330

curioussavage opened this issue Jul 21, 2016 · 19 comments
Labels
🛠 Type: Feature Request Issue or PR is a feature request/proposal for Hyper

Comments

@curioussavage
Copy link

Iterm 2 lets you configure option to send the code for escape. It would be awesome to have some way to configure hyperterm to do this as well. Us poor mac users want meta keys too!

@domachine
Copy link

Yap, would be awesome for jumping words e.g. <option>+<left>

@timothyis timothyis added the 🛠 Type: Feature Request Issue or PR is a feature request/proposal for Hyper label Jul 26, 2016
@timothyis timothyis changed the title send escape for option (osx) Send escape for option (MacOS/OSX) Jul 26, 2016
@chriskrycho
Copy link

This is a cannot-use-the-app deficiency for me (and, I suspect, for quite a few others): I use optionf (word forward), optionb (word back), optiond (delete word), etc. a lot.

@azer
Copy link

azer commented Sep 26, 2016

Emacs users also need this feeature.

@rye
Copy link

rye commented Oct 5, 2016

I do believe that the relevant code could be found in lib/hterm.js. It appears that #686, which added the "modifierKeys" setting, may have resolved this issue. However, I, personally, would still like to see more rich support for the Command and Option keys being used.

@ekmartin
Copy link
Contributor

ekmartin commented Oct 5, 2016

You're right @rye, setting modifierKeys to { altIsMeta: true } will allow the behavior described here. I'm gonna close this, but feel free to open another issue regarding the rich support.

@curioussavage
Copy link
Author

curioussavage commented Nov 15, 2016

Can somebody confirm this works for option on osx? Or tell me what else I need to do for this to work?

I set altIsMeta: true in the config

using sed -n l:
for option+h I get: ˙ while in iterm 2 I get ^[h

Also big thank you for everybody that worked/works on this so far!

@domachine
Copy link

@curioussavage Hey, yeah I can confirm that this works (as far as I expect it) on OSX. If I press option+h it tries to show a manual page. And if I press option+b the cursor jumps back a word. Just as I would expect it. The start of my ~/.hyper.js looks like this:

screen shot 2016-11-16 at 09 35 54

@curioussavage
Copy link
Author

curioussavage commented Nov 18, 2016

@domachine so I am assuming you actually see the `^[`` if you use sed or another approach to see what the terminal receives? I still get nothing.

I even tried using karabiner to set option key to send Esc globally which worked: I saw ^[h in sed but hyperterm does nothin (I have Meta-h set up to switch panes in tmux) option-b does jump backwards though.

@FelikZ
Copy link

FelikZ commented Jan 5, 2017

On Windows 10, I have:
modifierKeys: {
altIsMeta: true,
cmdIsMeta: true
},

And still alt is ignored.

@nwshane
Copy link

nwshane commented Feb 2, 2017

I added modifierKeys: { altIsMeta: true } to my ~/.hyper.js config file a few weeks ago, but it still didn't work. Came back to it today and realized my mistake: I had added modifierKeys: { altIsMeta: true } to the module.exports object, not the config object within module.exports. To summarize...

Incorrect:

module.exports = {
  config: {},
  modifierKeys: { altIsMeta: true }
}

Correct:

module.exports = {
  config: {
    modifierKeys: { altIsMeta: true }
  }
}

Hope that helps someone.

@FelikZ
Copy link

FelikZ commented Feb 11, 2017

@nwshane I did it right, but no effect still

@ppot
Copy link
Contributor

ppot commented Feb 11, 2017

Can you list the desired feature and keybinding to ppot#11

@drorata
Copy link

drorata commented Feb 16, 2017

I added

modifierKeys: {
      altIsMeta: true
    }

to the config inside module.exports but it still doesn't work. When trying Alt+b, Alt+f or Alt+. I get , ƒ and , respectively.

I need it to be backwards, forward and "last argument". How can I fix this?

@sorahn
Copy link

sorahn commented Feb 23, 2017

What is missing is an altIsEscape option.

altIsEscape

@antonyr
Copy link

antonyr commented May 8, 2017

@ekmartin What we need is altIsEscape option too

@ppot
Copy link
Contributor

ppot commented May 8, 2017

The fix will be in #1509

@sandric
Copy link

sandric commented Jul 15, 2017

I'm not seeing this.. I found new cmdIsMeta but I don't see it send any escape codes, rather some 'special characters'. Is there cmdIs+Esc?

@samuela
Copy link

samuela commented Jun 5, 2018

I've tried all the options here but none of them seem to offer the same thing as Terminal's "Use Option as Meta key" option. If I do option+left/right arrow or option+backspace they don't do the same thing as one should expect.

@deonquentinzoss
Copy link

For those still struggling after adding altIsMeta line to the config, make sure to put a comma after the line, if other lines follow it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠 Type: Feature Request Issue or PR is a feature request/proposal for Hyper
Projects
None yet
Development

No branches or pull requests