Copy keeps everything: text, images and attachments as they are #658

Open
opened 2026-10-21 07:53:37 +00:00 by kayg · 0 comments
Owner

kayg (2026-10-21): in normal mode, ⌘A then ⌘C should copy everything as-is: text as text, attachments as attachments, all original.

Now: the editor has no copy handler. CodeMirror copies the selection's raw markdown, so an image arrives as ![](<attachments/x.jpg>). Pasted into Apple Notes or Mail, you get that text, not the image. Pasted into another Calternal note, the relative path can break.

Limit: web pages can only put text/plain, text/html and image/png on the clipboard. Chrome also supports web custom formats; Safari does not.

Being grilled now. Proposed:

  • Calternal→Calternal: full copy of the attachments (reflinked), with links rewritten.
  • Other apps: text/html with embedded images.
  • Plain text: the markdown.
  • A single image: PNG for the clipboard, the original stays untouched.
  • Other files: links on the web, real files in native apps.
  • ⌘C is the default; "Copy as Markdown" goes in ⋯.
kayg (2026-10-21): in normal mode, ⌘A then ⌘C should copy everything as-is: text as text, attachments as attachments, all original. **Now:** the editor has no copy handler. CodeMirror copies the selection's raw markdown, so an image arrives as `![](<attachments/x.jpg>)`. Pasted into Apple Notes or Mail, you get that text, not the image. Pasted into another Calternal note, the relative path can break. **Limit:** web pages can only put text/plain, text/html and image/png on the clipboard. Chrome also supports web custom formats; Safari does not. Being grilled now. Proposed: - Calternal→Calternal: full copy of the attachments (reflinked), with links rewritten. - Other apps: text/html with embedded images. - Plain text: the markdown. - A single image: PNG for the clipboard, the original stays untouched. - Other files: links on the web, real files in native apps. - ⌘C is the default; "Copy as Markdown" goes in ⋯.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#658
No description provided.