micro-plugin-lsp icon indicating copy to clipboard operation
micro-plugin-lsp copied to clipboard

Keyboard shortcuts not working on Mac

Open Explosion-Scratch opened this issue 1 year ago • 2 comments

On Mac, pressing the alt key enables you to type other symbols (•ª•¶¢º¡ª), so therefore it just types that symbol instead of using the keyboard shortcuts

Explosion-Scratch avatar Sep 14 '23 15:09 Explosion-Scratch

Good point! I haven't used a mac in a while. I will take a look at what alternative default shortcuts could be defined. In the meantime, you can use the bindings.json in your ~/.config/micro/ directory to change the bindings manually.

AndCake avatar Sep 19 '23 07:09 AndCake

I found the following settings to work rather ok on Mac:

{
  "Ctrl-k": "command:hover",
  "Ctrl-d": "command:definition",
  "Ctrl-r": "command:references",
  "Alt-Space": "command:completion"
}

I noticed that micro itself also doesn't seem to handle any mac OS specific shortcuts, which means just mapping everything over to Ctrl rather than Alt will cause some issues with native micro functionality. Can you see if applying the key bindings above would be disruptive to your workflow?

AndCake avatar Sep 19 '23 08:09 AndCake