vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.27k stars 3.52k forks source link

map cmd + ; to ctrl + b #3480

Open jasonoverby opened 5 years ago

jasonoverby commented 5 years ago

Issue

I love Hyper, and I am hoping to replace iterm with it. I am having difficulty, however, with tmux bindings. Specifically, I am hoping to map my ideal tmux prefix (cmd-;) to the standard tmux prefix (ctrl-b). I have adjusted the keymaps in my preferences, but this doesn't seem to work. What am I missing? Thank you!!

ppot commented 5 years ago

Yeah. The Keymap I introduced is to bind keymap to hyper commands. Not underlaying tmux binding. On your config :

  keymaps: {
// Example
// 'window:devtools': 'cmd+alt+o',
// '0x02':'command+;',
'ctrl+b':'command+;',
  },

You can clearly see that: ctrl+b isn't a https://github.com/zeit/hyper/blob/canary/app/keymaps/darwin.json command. I can see it's the default prefix of tmux. However tmux dosen't support the command meta key. Maybe @chabou can point you on how to send a command to hyper that send C-b to hyper.

jasonoverby commented 5 years ago

Thanks, @ppot & that makes sense.