Rename root-view: event prefix to window:

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-10-19 12:51:36 -06:00
parent e6d541438d
commit 9303aaa8fd
4 changed files with 16 additions and 16 deletions

View File

@@ -21,7 +21,7 @@ window.keymap.bindKeys 'body'
pageup: 'core:page-up'
pagedown: 'core:page-down'
'meta-S': 'root-view:save-all'
'meta-+': 'root-view:increase-font-size'
'meta--': 'root-view:decrease-font-size'
'ctrl-w w': 'root-view:focus-next-pane'
'meta-S': 'window:save-all'
'meta-+': 'window:increase-font-size'
'meta--': 'window:decrease-font-size'
'ctrl-w w': 'window:focus-next-pane'

View File

@@ -74,11 +74,11 @@ class RootView extends View
@project.setPath(path) unless @project.getRootDirectory()
@setTitle(path)
@command 'root-view:increase-font-size', => @setFontSize(@getFontSize() + 1)
@command 'root-view:decrease-font-size', => @setFontSize(@getFontSize() - 1)
@command 'root-view:focus-next-pane', => @focusNextPane()
@command 'root-view:save-all', => @saveAll()
@command 'root-view:toggle-invisibles', => @setShowInvisibles(not @showInvisibles)
@command 'window:increase-font-size', => @setFontSize(@getFontSize() + 1)
@command 'window:decrease-font-size', => @setFontSize(@getFontSize() - 1)
@command 'window:focus-next-pane', => @focusNextPane()
@command 'window:save-all', => @saveAll()
@command 'window:toggle-invisibles', => @setShowInvisibles(not @showInvisibles)
afterAttach: (onDom) ->
@focus() if onDom