mirror of
https://github.com/atom/atom.git
synced 2026-02-12 07:35:14 -05:00
Make toggle-ignored-files a window event
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user