Hack to open unstable windows from atom-stable

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-11-09 10:17:52 -07:00
parent 1f94b2aacc
commit e6f5a60b44
8 changed files with 37 additions and 0 deletions

View File

@@ -25,6 +25,9 @@ atom.receiveMessageFromBrowserProcess = (name, data) ->
atom.open = (args...) ->
@sendMessageToBrowserProcess('open', args)
atom.openUnstable = (args...) ->
@sendMessageToBrowserProcess('openUnstable', args)
atom.newWindow = (args...) ->
@sendMessageToBrowserProcess('newWindow', args)

View File

@@ -20,11 +20,13 @@ class Keymap
'meta-n': 'new-window'
'meta-,': 'open-user-configuration'
'meta-o': 'open'
'meta-O': 'open-unstable'
'meta-w': 'core:close'
$(document).on 'new-window', => atom.newWindow()
$(document).on 'open-user-configuration', => atom.open(atom.configFilePath)
$(document).on 'open', => atom.open()
$(document).on 'open-unstable', => atom.openUnstable()
bindKeys: (selector, bindings) ->
bindingSet = new BindingSet(selector, bindings, @bindingSets.length)