onivim / oni

Oni: Modern Modal Editing - powered by Neovim
https://www.onivim.io
MIT License
11.35k stars 300 forks source link

Ability to configure macOS to use ctrl shortcuts instead of CMD #2724

Open taylorthurlow opened 5 years ago

taylorthurlow commented 5 years ago

Due to the fact that some key bindings are platform-specific, I find myself in a situation where there are a bunch of CMD shortcuts, but a bunch of the other shortcuts like window navigation are ctrl-only. It would be really useful to have a setting to change all macOS platform-specific CMD shortcuts to their Linux/Windows ctrl alternatives.

oni-bot[bot] commented 5 years ago

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

TalAmuyal commented 5 years ago

I'm totally with you! I use Karabiner-Elements to solve that system-wide. You can use my dotfile generator as ref if you'd like: https://github.com/TalAmuyal/MyConfigs/blob/master/scripts/gen_karabiner_config.py

On Sun, Feb 17, 2019, 20:35 oni-bot[bot] notifications@github.com wrote:

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/onivim/oni/issues/2724#issuecomment-464492448, or mute the thread https://github.com/notifications/unsubscribe-auth/AE3IjZkaBhwxDtiSXrotmEur3Uh1Aw21ks5vOaDxgaJpZM4a_tlw .

taylorthurlow commented 5 years ago

@TalAmuyal Thanks for the tip!

taylorthurlow commented 5 years ago

To fix the quick open binding, I added the following to my config.tsx:

oni.input.bind("<c-p>", () => oni.commands.executeCommand("quickOpen.show"))