my/smart-paste bound to s-v (cmd+v) in org-mode and markdown-mode: - clipboard has image → my/paste-image-from-clipboard - clipboard has text → normal yank my/paste-image-from-clipboard: - saves to attachments/ relative to current file - filename: image-YYYYMMDD-HHMMSS.png - org-mode: [[./attachments/image-....png]] - markdown-mode:  - creates attachments/ dir if missing Requires: brew install pngpaste
38 KiB
38 KiB