mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-29 16:56:40 +03:00
72 lines
1.7 KiB
Swift
72 lines
1.7 KiB
Swift
/**
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
* See LICENSE
|
|
*/
|
|
|
|
import Foundation
|
|
|
|
protocol SerializableState {
|
|
|
|
init?(dict: [String: Any])
|
|
|
|
func dict() -> [String: Any]
|
|
}
|
|
|
|
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"
|
|
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"
|
|
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"
|
|
static let orderedTools = "ordered-tools"
|
|
static let activeTools = "active-tools"
|
|
|
|
static let useInteractiveZsh = "use-interactive-zsh"
|
|
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"
|
|
}
|
|
}
|