Make toggle-ignored-files a window event

This commit is contained in:
Kevin Sawicki
2012-11-19 09:30:21 -08:00
parent 95775361b1
commit 55f88d2d76
2 changed files with 1 additions and 4 deletions

View File

@@ -162,7 +162,6 @@ class Editor extends View
'editor:toggle-line-comments': @toggleLineCommentsInSelection
'editor:log-cursor-scope': @logCursorScope
'editor:checkout-head-revision': @checkoutHead
'editor:toggle-ignored-files': @toggleIgnoredFiles
documentation = {}
for name, method of editorBindings
@@ -976,9 +975,6 @@ class Editor extends View
toggleLineCommentsInSelection: ->
@activeEditSession.toggleLineCommentsInSelection()
toggleIgnoredFiles: ->
@rootView().toggleIgnoredFiles()
logRenderedLines: ->
@renderedLines.find('.line').each (n) ->
console.log n, $(this).text()

View File

@@ -87,6 +87,7 @@ class RootView extends View
@command 'window:focus-next-pane', => @focusNextPane()
@command 'window:save-all', => @saveAll()
@command 'window:toggle-invisibles', => @setShowInvisibles(not @showInvisibles)
@command 'window:toggle-ignored-files', => @toggleIgnoredFiles()
afterAttach: (onDom) ->
@focus() if onDom