Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from p0deje:master #87

Merged
merged 9 commits into from
Jan 23, 2025
Prev Previous commit
Next Next commit
Avoid duplicates from Google Sheets
  • Loading branch information
p0deje committed Jan 22, 2025
commit 87871a11a261d835ff98ccc71d948518c3d21a20
4 changes: 4 additions & 0 deletions Maccy/Extensions/NSPasteboard.PasteboardType+Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ extension NSPasteboard.PasteboardType: Defaults.Serializable {
// Types that indicate Microsoft Word bookmarks (links).
static let microsoftObjectLink = NSPasteboard.PasteboardType(rawValue: "com.microsoft.ObjectLink")
static let microsoftLinkSource = NSPasteboard.PasteboardType(rawValue: "com.microsoft.Link-Source")

// Safari preview and extra metadata that changes frequently.
static let linkPresentationMetadata = NSPasteboard.PasteboardType(rawValue: "com.apple.linkpresentation.metadata")
static let customPasteboardData = NSPasteboard.PasteboardType(rawValue: "com.apple.WebKit.custom-pasteboard-data")
}
3 changes: 2 additions & 1 deletion Maccy/Models/HistoryItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ class HistoryItem {
private static let transientTypes: [String] = [
NSPasteboard.PasteboardType.modified.rawValue,
NSPasteboard.PasteboardType.fromMaccy.rawValue,
"com.apple.linkpresentation.metadata"
NSPasteboard.PasteboardType.linkPresentationMetadata.rawValue,
NSPasteboard.PasteboardType.customPasteboardData.rawValue
]

var application: String?
Expand Down