Add Workspace::getActiveEditor and Pane::getActiveEditor

This commit is contained in:
probablycorey
2014-02-11 10:58:24 -08:00
parent 4b529ae167
commit a2fcc7aa7a
2 changed files with 12 additions and 0 deletions

View File

@@ -155,6 +155,11 @@ class Workspace extends Model
destroyActivePane: ->
@activePane?.destroy()
# Public: Returns an {Editor} if the active pane item is an {Editor},
# or null otherwise.
getActiveEditor: ->
@activePane?.getActiveEditor()
increaseFontSize: ->
atom.config.set("editor.fontSize", atom.config.get("editor.fontSize") + 1)