📝 Add examples for atom.workspaceView

This commit is contained in:
Kevin Sawicki
2014-03-11 18:23:59 -07:00
parent fecf13e2df
commit 2de18d3c4d

View File

@@ -20,7 +20,23 @@ LongLineLength = 1000
# ## Requiring in packages
#
# ```coffee
# {EditorView} = require 'atom'
# {EditorView} = require 'atom'
#
# miniEditorView = new EditorView(mini: true)
# ```
#
# ## Iterating over the open editor views
#
# ```coffee
# for editorView in atom.workspace.getEditorViews()
# console.log(editorView.getEditor().getPath())
# ```
#
# ## Subscribing to every current and future editor
#
# ```coffee
# atom.workspace.eachEditorView (editorView) ->
# console.log(editorView.getEditor().getPath())
# ```
module.exports =
class EditorView extends View