1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-24 03:25:03 +03:00
This commit is contained in:
Tae Won Ha 2017-06-20 13:37:01 +02:00
parent ebfd722aa4
commit 2298cbf07b
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -32,8 +32,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
initialAppState = .default
}
}
initialAppState.mainWindowTemplate.htmlPreview.server
= Marked(baseServerUrl.appendingPathComponent(HtmlPreviewToolReducer.selectFirstPath))
initialAppState.mainWindowTemplate.htmlPreview.server = Marked(
baseServerUrl.appendingPathComponent(HtmlPreviewToolReducer.selectFirstPath)
)
self.stateContext = Context(baseServerUrl: baseServerUrl, state: initialAppState)
self.emit = self.stateContext.actionEmitter.typedEmit()
@ -110,7 +111,7 @@ extension AppDelegate {
self.launching = false
#if DEBUG
NSApp.mainMenu?.items.first { $0.identifier == "debug-menu-item" }?.isHidden = false
NSApp.mainMenu?.items.first { $0.identifier == debugMenuItemIdentifier }?.isHidden = false
#endif
}
@ -311,6 +312,8 @@ fileprivate enum VimRUrlAction: String {
fileprivate let updater = SUUpdater()
fileprivate let debugMenuItemIdentifier = "debug-menu-item"
fileprivate let filePrefix = "file="
fileprivate let cwdPrefix = "cwd="
fileprivate let nvimArgsPrefix = "nvim-args="