Change tree-view:toggle keybinding


#1

I want to change the keybinding for tree-view:toggle to editor:toggle-line-comments

However, when I enter this line into keymap.cson
’atom-text-editor’:‘ctrl-’: ‘editor:toggle-line-comments’

I get an error, because the quote gets escaped.

I do I wanage this ?

Thank you for the support.


#2

I believe that you have to use four backslashes for the escaping to work.


#3

Thank you,

After a bit of trying the correct command was:

'atom-workspace atom-text-editor':'ctrl-\\': 'editor:toggle-line-comments'