mirror of
https://github.com/atom/atom.git
synced 2026-02-05 20:25:04 -05:00
Bind meta-N to open a new untitled editor
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
'meta-T': 'pane:reopen-closed-item'
|
||||
|
||||
'meta-n': 'new-window'
|
||||
'meta-N': 'new-editor'
|
||||
'meta-,': 'open-user-configuration'
|
||||
'meta-o': 'open'
|
||||
'meta-O': 'open-dev'
|
||||
|
||||
@@ -34,7 +34,7 @@ class RootView extends View
|
||||
@div id: 'horizontal', outlet: 'horizontal', =>
|
||||
@div id: 'vertical', outlet: 'vertical', =>
|
||||
@subview 'panes', panes ? new PaneContainer
|
||||
|
||||
|
||||
@deserialize: ({ panes }) ->
|
||||
panes = deserialize(panes) if panes?.deserializer is 'PaneContainer'
|
||||
new RootView({panes})
|
||||
@@ -74,6 +74,9 @@ class RootView extends View
|
||||
@command 'pane:reopen-closed-item', =>
|
||||
@panes.reopenItem()
|
||||
|
||||
@command 'new-editor', =>
|
||||
@open()
|
||||
|
||||
serialize: ->
|
||||
version: RootView.version
|
||||
deserializer: 'RootView'
|
||||
|
||||
Reference in New Issue
Block a user