Txt Pasteboard

Customize copy, cut, and paste in text editors — UIPasteboard and NSPasteboard reads and writes, NSItemProvider type negotiation, format stripping and rich-text sanitization on paste, NSTextAttachment handling for pasted images, custom UTType identifiers for round-tripping app-specific formats. Use when paste brings unwanted fonts and colors, copies should write multiple representations, custom formats need to round-trip, pasted images should land as inline attachments, or programmatic paste is bypassing typing attributes. Trigger on 'paste brings in fonts/styles I don't want', 'copy with formatting', 'cmd-c isn't doing the right thing', or any clipboard-related editor question even without UIPasteboard mentioned. Do NOT use for drag-and-drop (see txt-drag-drop).

sitapix c1f20bf 12.2 KB Updated

File contents

sitapix/apple-text/tree/main/skills/txt-pasteboard commit c1f20bf3b4

Frequently asked questions

npx skillmds@latest add sitapix/txt-pasteboard