mirror of
https://github.com/atom/atom.git
synced 2026-02-17 18:11:29 -05:00
Add Workspace::getActiveEditor and Pane::getActiveEditor
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user