That’s a great suggestion… it wouldn’t be possible as a “Paste as…” action but it could be done with a “Copy as…”.
The following should do the trick:
# popclip extenison to copy with source link
name: Copy with Link
icon: symbol:link.circle.fill
before: copy
javascript: |
if (popclip.context.browserUrl.length > 0) {
pasteboard.text = pasteboard.text.trim() + '\n\n' + popclip.context.browserUrl
}
(The above block is an extension snippet - select it to install the extension with PopClip)
The javascript code checks to see if there is a browser URL available and if so appends two newlines followed by the URL to the text on the pasteboard.