Search code examples
linuxcoffeescriptkey-bindingsatom-editorcson

Adding Super Key to Atom editor's key bindings


I've made the switch from kate to Github's Atom editor and I'm enjoying all the plugins and extras it has. One thing that I can't figure out however is to make use of the linux "super key" in atom's key bindings (Also known as the Windows key). Atom keeps its key bindings in .cson files and I haven't been able to find any reference to super. Anyone know how to do this?


Solution

  • I'm not sure if this will work with a windows keyboard, I'm using an apple keyboard, but cmd seems to work as the Super key for me.

    In my keymap file, I enter code like this:

     'atom-workspace':
       'cmd-i': 'core:move-up'
       'cmd-k': 'core:move-down'
       'ctrl-d':'editor:delete-to-beginning-of-line'
    

    Hope this helps.