rogual / neovim-dot-app

Mac OS X GUI for Neovim
1.13k stars 62 forks source link

Added macmeta support #250

Closed bambu closed 8 years ago

bambu commented 8 years ago

Added macmeta support as requested in #249 and #86. This only translates the Meta/Alt/Option key as such. It does not interpret the Command key as a Meta key. This can be turned on by calling:

call MacSetMacmeta(1)
nrontsis commented 8 years ago

Thanks a bunch! Works fine. 👍

Any reason why you went with call MacSetMacmeta(1) instead of set macmeta?

rogual commented 8 years ago

There's no Neovim API to add new set commands.

rogual commented 8 years ago

Looks good to me @bambu. Before I merge this, can anyone think of a more descriptive name than MacSetMacmeta?

I'd rather go for self-explanatory over MacVim-compatible if possible. Happy to merge otherwise, but it won't be easy to change later.

bambu commented 8 years ago

How about MacSetOptionAsMeta()? That is similar to what Terminal / iterm2 call there setting.

rogual commented 8 years ago

I like that.

bambu commented 8 years ago

updated

rogual commented 8 years ago

Thanks!