mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-29 22:48:37 +00:00
feat(macOS): Paste copied files as absolute paths.
Previously files would be pasted as only the filename. This commit introduces an extension to NSPasteboard which provides a method to consistently get the string contents of a pasteboard so that the behavior can stay the same anywhere where we need to do that.
This commit is contained in:
@@ -382,7 +382,7 @@ extension Ghostty {
|
||||
}
|
||||
|
||||
// Get our string
|
||||
let str = NSPasteboard.general.string(forType: .string) ?? ""
|
||||
let str = NSPasteboard.general.getOpinionatedStringContents() ?? ""
|
||||
completeClipboardRequest(surface, data: str, state: state)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user