Add window:reset-font-size command

This commit is contained in:
Kevin Sawicki
2014-02-11 09:58:40 -08:00
parent d7fabc5a58
commit dda412d5ec
6 changed files with 27 additions and 0 deletions

View File

@@ -167,6 +167,9 @@ class Workspace extends Model
fontSize = atom.config.get("editor.fontSize")
atom.config.set("editor.fontSize", fontSize - 1) if fontSize > 1
resetFontSize: ->
atom.config.restoreDefault("editor.fontSize")
# Removes the item's uri from the list of potential items to reopen.
itemOpened: (item) ->
if uri = item.getUri?()