Last active
August 29, 2015 14:10
-
-
Save andyleap/2378fc4ef8c1410da446 to your computer and use it in GitHub Desktop.
screeps console history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: $(function(){ace.edit($("div.ace_editor")[0]).commands.addCommand({name:"saveFile",bindKey:{win:"Ctrl-S",mac:"Command-S",sender:"editor|cli"},exec:function(a,b,c){$("div.controls button.submit").click()}});}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ace.edit($('div.ace_editor')[0]).commands.addCommand({ | |
name: 'saveFile', | |
bindKey: { | |
win: 'Ctrl-S', | |
mac: 'Command-S', | |
sender: 'editor|cli' | |
}, | |
exec: function(env, args, request) { | |
$('div.controls button.submit').click(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ctrl_s_commit does not work for linux, if you add:
linux: 'Ctrl-S',
after line 4 it will enable linux support.