1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 16:56:40 +03:00
vimr/VimR/SerializableStates.swift

72 lines
1.7 KiB
Swift
Raw Normal View History

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-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"
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"
static let usesTheme = "uses-theme"
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"
static let activeTools = "active-tools"
2017-03-01 00:04:12 +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"
}
}