2017-02-28 17:52:48 +03:00
|
|
|
/**
|
|
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
|
|
* See LICENSE
|
|
|
|
*/
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
protocol SerializableState {
|
|
|
|
|
2017-03-01 00:04:12 +03:00
|
|
|
init?(dict: [String: Any])
|
2017-02-28 18:59:22 +03:00
|
|
|
|
2017-03-01 00:04:12 +03:00
|
|
|
func dict() -> [String: Any]
|
2017-02-28 17:52:48 +03:00
|
|
|
}
|
|
|
|
|
2017-03-01 00:04:12 +03:00
|
|
|
class Keys {
|
|
|
|
|
|
|
|
static let openNewOnLaunch = "open-new-window-when-launching"
|
|
|
|
static let openNewOnReactivation = "open-new-window-on-reactivation"
|
2017-06-14 00:17:06 +03:00
|
|
|
static let afterLastWindowAction = "after-last-window-action"
|
2017-03-01 00:04:12 +03:00
|
|
|
static let useSnapshotUpdateChannel = "use-snapshot-update-channel"
|
|
|
|
|
|
|
|
class OpenQuickly {
|
|
|
|
|
|
|
|
static let key = "open-quickly"
|
|
|
|
|
|
|
|
static let ignorePatterns = "ignore-patterns"
|
|
|
|
}
|
|
|
|
|
|
|
|
class Appearance {
|
|
|
|
|
|
|
|
static let key = "appearance"
|
|
|
|
|
2017-06-27 07:47:45 +03:00
|
|
|
static let usesTheme = "uses-theme"
|
2017-06-30 00:44:53 +03:00
|
|
|
static let showsFileIcon = "shows-file-icon"
|
2017-03-01 00:04:12 +03:00
|
|
|
static let editorFontName = "editor-font-name"
|
|
|
|
static let editorFontSize = "editor-font-size"
|
|
|
|
static let editorLinespacing = "editor-linespacing"
|
|
|
|
static let editorUsesLigatures = "editor-uses-ligatures"
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow {
|
|
|
|
|
|
|
|
static let key = "main-window"
|
|
|
|
|
|
|
|
static let allToolsVisible = "is-all-tools-visible"
|
|
|
|
static let toolButtonsVisible = "is-tool-buttons-visible"
|
2017-04-10 21:38:17 +03:00
|
|
|
static let orderedTools = "ordered-tools"
|
2017-05-01 18:15:21 +03:00
|
|
|
static let activeTools = "active-tools"
|
2017-03-01 00:04:12 +03:00
|
|
|
|
2017-05-05 18:42:35 +03:00
|
|
|
static let useInteractiveZsh = "use-interactive-zsh"
|
2017-03-01 00:04:12 +03:00
|
|
|
static let isShowHidden = "is-show-hidden"
|
|
|
|
}
|
|
|
|
|
|
|
|
class PreviewTool {
|
|
|
|
|
|
|
|
static let key = "preview-tool"
|
|
|
|
|
|
|
|
static let forwardSearchAutomatically = "is-forward-search-automatically"
|
|
|
|
static let reverseSearchAutomatically = "is-reverse-search-automatically"
|
|
|
|
static let refreshOnWrite = "is-refresh-on-write"
|
|
|
|
}
|
|
|
|
|
|
|
|
class WorkspaceTool {
|
|
|
|
|
|
|
|
static let key = "workspace-tool"
|
|
|
|
|
|
|
|
static let location = "location"
|
|
|
|
static let open = "is-visible"
|
|
|
|
static let dimension = "dimension"
|
|
|
|
}
|
|
|
|
}
|