Rename restoreItem to reopenItem on pane container

This commit is contained in:
Corey Johnson & Nathan Sobo
2013-03-06 13:52:27 -08:00
committed by probablycorey
parent ffb8bcd71d
commit c1d19c4c5c
3 changed files with 11 additions and 9 deletions

View File

@@ -37,7 +37,7 @@ class PaneContainer extends View
nextIndex = (currentIndex + 1) % panes.length
panes[nextIndex].makeActive()
restoreItem: ->
reopenItem: ->
if lastItemState = @destroyedItemStates.pop()
if activePane = @getActivePane()
activePane.showItem(deserialize(lastItemState))

View File

@@ -58,13 +58,15 @@ class RootView extends View
config.set("editor.showInvisibles", !config.get("editor.showInvisibles"))
@command 'window:toggle-ignored-files', =>
config.set("core.hideGitIgnoredFiles", not config.core.hideGitIgnoredFiles)
@command 'window:toggle-auto-indent', =>
config.set("editor.autoIndent", !config.get("editor.autoIndent"))
@command 'window:toggle-auto-indent-on-paste', =>
config.set("editor.autoIndentOnPaste", !config.get("editor.autoIndentOnPaste"))
@command 'pane:reopen-closed-item', =>
@panes.restoreItem()
@panes.reopenItem()
serialize: ->
deserializer: 'RootView'