Add commands to toggle auto-indent options

This commit is contained in:
Corey Johnson
2013-01-10 10:40:05 -08:00
parent ca41bf0709
commit 0c0d48b8f6

View File

@@ -102,6 +102,10 @@ class RootView extends View
config.set("editor.showInvisibles", !config.get("editor.showInvisibles"))
@command 'window:toggle-ignored-files', =>
config.set("core.hideGitIgnoredFiles", not config.core.hideGitIgnoredFiles)
@command 'window:toggle-auto-indent', =>
config.set("editor.autoIndent", !config.get("editor.autoIndent"))
@command 'window:toggle-auto-indent-on-paste', =>
config.set("editor.autoIndentOnPaste", !config.get("editor.autoIndentOnPaste"))
afterAttach: (onDom) ->
@focus() if onDom