mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-27 15:53:31 +03:00
c9e4626c32
- When compiling with -Os nvim_command_output does not work somehow... Dunno why. For -O0 it works...
29 lines
750 B
Swift
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
|
|
}
|
|
}
|