Repository navigation
macOS paste prefers NSURL over plain text, causing Transmit SFTP paths to paste as sftp:// URLs #13133
Issue DescriptionOpening this as a discussion per repository policy. I originally filed this as #13132, which was auto-closed because non-maintainers are asked to start with a discussion. On macOS, copying a remote path from Panic Transmit with When pasting into Sublime Text, the plain path is pasted: When pasting the same clipboard contents into Ghostty with This seems related to the macOS pasteboard representation ordering used by Relevant source: if let urls = readObjects(forClasses: [NSURL.self]) as? [URL],
urls.count > 0 {
return urls
.map { $0.isFileURL ? Ghostty.Shell.escape($0.path) : $0.absoluteString }
.joined(separator: " ")
}
return self.string(forType: .string)Related discussion: #12519 Expected BehaviorFor normal terminal paste, Ghostty should prefer the plain text representation when one exists, or provide a way to paste plain text only. In this case, Actual BehaviorGhostty pastes: Reproduction Steps
Ghostty LogsNo logs observed yet. This appears to be deterministic pasteboard representation selection behavior. Ghostty VersionUnknown from CLI on the machine where I am filing this; OS Version InformationMinimal Ghostty ConfigurationReproducible with normal paste behavior; no known clipboard-related Ghostty configuration is involved. Additional Relevant ConfigurationSource application: Panic Transmit, using regular NotesThis may be the same class of issue as #12519: Ghostty choosing a richer/non-text pasteboard representation when a plain text representation would be more appropriate for a terminal paste. |
Replies: 2 comments 2 replies
|
Perhaps related: when I copy–paste an email address from LaunchBar's Contacts, it pastes into Ghostty as If I copy an email address from a plain text document (e.g., TextMate) it doesn't add Pasting from LaunchBar to most other apps (e.g., Terminal.app, TextMate.app, iA Writer.app) pastes the email without |
#13152