1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-27 15:53:31 +03:00
vimr/VimR/OpenQuicklyWindowManager.swift
Tae Won Ha c9e4626c32
GH-264 Do not use nvim_command_output
- When compiling with -Os nvim_command_output does not work somehow...
  Dunno why. For -O0 it works...
2016-09-03 22:49:09 +02:00

29 lines
750 B
Swift

/**
* Tae Won Ha - http://taewon.de - @hataewon
* See LICENSE
*/
import Cocoa
import RxSwift
class OpenQuicklyWindowManager: StandardFlow {
private let openQuicklyWindow: OpenQuicklyWindowComponent
private let fileItemService: FileItemService
init(source: Observable<Any>, fileItemService: FileItemService) {
self.fileItemService = fileItemService
self.openQuicklyWindow = OpenQuicklyWindowComponent(source: source, fileItemService: fileItemService)
super.init(source: source)
}
func open(forMainWindow mainWindow: MainWindowComponent) {
self.openQuicklyWindow.show(forMainWindow: mainWindow)
}
override func subscription(source source: Observable<Any>) -> Disposable {
return NopDisposable.instance
}
}