mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: support dropping file urls onto surfaces
This commit is contained in:
@ -133,7 +133,12 @@ extension Ghostty {
|
||||
providers.forEach { provider in
|
||||
_ = provider.loadObject(ofClass: URL.self) { url, _ in
|
||||
guard let url = url else { return }
|
||||
AppDelegate.logger.warning("OPEN url=\(url.path)")
|
||||
DispatchQueue.main.async {
|
||||
surfaceView.insertText(
|
||||
url.path,
|
||||
replacementRange: NSMakeRange(0, 0)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user