Good day to all! Atom editor can not install my shortcut keys, in the file keymap.cson I write:

'body': 'alt-f1': 'core:save-all' 

But this combination does not work when you click them the files are not saved. Tell me how to be.

    2 answers 2

    This should work.

     'atom-workspace': 'alt-f1': 'core:save' 

    This is all tabs

     'body': 'alt-f1': 'window:save-all' 

    PS command save-all works with window

    • not-but does not work)) - alexandrovdi
    • @alexandrovdi fixed, should work - Umer
    • PS I did not find the save-all command, you can tell where it came from — I took the example from an atom. And at the expense of the team also works, I still do the right thing, I write a command, click Save and everything should work? Or what else needs to be done? - alexandrovdi
    • in keybindings in the settings, the key combination is - alexandrovdi
    • @alexandrovdi yes, just save the file keymap.cson and everything should work - Umer

    Just looking at the source atom realized where the error. The correct code is:

     'atom-text-editor': 'alt-f1': 'window:save-all' 

    It is necessary to use Window!