Map autocomplete:toggle to tab key


#1

hi!

I’m trying to map autocomplete:toggle to the <tab> key, but it seems that it’s not working.

I added the mapping in my user keymap.cson like this:

'.editor':
  'tab': 'autocomplete:toggle'

Am I missing something?

Thanks!


#2

Check out Overloading Key Bindings on the Keymap advanced documentation page …

https://atom.io/docs/latest/advanced/keymaps

It has specific information about overloading TAB and I suspect that you are not using a specific enough keymap to override all the key bindings that are already there.