mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 05:20:29 +00:00
macos: I don't need any custom quicklook stuff
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import QuickLookUI
|
||||
import SwiftUI
|
||||
import UserNotifications
|
||||
import GhosttyKit
|
||||
@@ -914,31 +913,6 @@ extension Ghostty {
|
||||
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