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!
Yap, would be awesome for jumping words e.g. <option>+<left>
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_.
Emacs users also need this feeature.
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.
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.
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!
@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:
@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.
On Windows 10, I have:
modifierKeys: {
altIsMeta: true,
cmdIsMeta: true
},
And still alt is ignored.
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.
@nwshane I did it right, but no effect still
Can you list the desired feature and keybinding to https://github.com/ppot/hyper/issues/11
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?
What is missing is an altIsEscape
option.
@ekmartin What we need is altIsEscape
option too
The fix will be in #1509
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
?
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.
Most helpful comment
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 addedmodifierKeys: { altIsMeta: true }
to themodule.exports
object, not theconfig
object withinmodule.exports
. To summarize...Incorrect:
Correct:
Hope that helps someone.