mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: I don't need any custom quicklook stuff
This commit is contained in:
@ -1,4 +1,3 @@
|
|||||||
import QuickLookUI
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
import UserNotifications
|
import UserNotifications
|
||||||
import GhosttyKit
|
import GhosttyKit
|
||||||
@ -914,31 +913,6 @@ extension Ghostty {
|
|||||||
Ghostty.moveFocus(to: self)
|
Ghostty.moveFocus(to: self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: QuickLook
|
|
||||||
|
|
||||||
private var quickLookURL: NSURL?
|
|
||||||
|
|
||||||
override func quickLook(with event: NSEvent) {
|
|
||||||
/* TODO
|
|
||||||
guard let panel = QLPreviewPanel.shared() else { return }
|
|
||||||
panel.delegate = self
|
|
||||||
panel.dataSource = self
|
|
||||||
panel.makeKeyAndOrderFront(self)
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: QuickLook Delegates
|
|
||||||
|
|
||||||
extension Ghostty.SurfaceView: QLPreviewPanelDelegate, QLPreviewPanelDataSource {
|
|
||||||
func numberOfPreviewItems(in panel: QLPreviewPanel!) -> Int {
|
|
||||||
return quickLookURL != nil ? 1 : 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func previewPanel(_ panel: QLPreviewPanel!, previewItemAt index: Int) -> (any QLPreviewItem)! {
|
|
||||||
return quickLookURL ?? nil
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user