Right click > Copy Link appears to copy link in an HTML format, rather than copying the link as text
- Edited
I'm able to duplicate, using copy link and pasting it in Discord pastes the title, not the URL. I'm using Discord in Orion, not the stand alone app.
Edited to add: Pasting into the Discord app pastes the URL as expected. It seems if I'm using Discord in the browser, pasting will paste the title rather than the URL. Not sure if that's an Orion problem or a Discord problem.
- Edited
On comment issue on this site:
I'm not selecting the text here - I am just two-finger clicking on the title to do a "copy link", as I would if I wanted to send someone to see an existing thread. The fact it highlights the rest of the text might be a (separate) bug, but it illustrates the nature of this bug -- Orion is using what is "highlighted" to influence the copy link behaviour, which is unexpected for this feature.
Expected behaviour (Firefox for this example):
Good idea, and it appears Safari is doing what Orion is doing here (including funny behavior on right-click. So I guess this is "wrong" behaviour if you expect to see the URL copied as text, but maybe acceptable behaviour if you are in the Apple-verse and assume HTML is supported everywhere.
With the rise of chat apps though, I guess that users may expect it to extract the link destination as text, so they can paste and share it?
- Edited
I'm not sure what to search to find information about it, but when a program gets a "User wants to copy this" request, the program can add multiple types of data to the clipboard. Say, one type is plain text, another is formatted text, etc.
That way, if the program receiving the Paste request supports the "fancier" version it can use that or fall back to the plain text version if it doesn't.
In macOS, there is a default system wide shortcut key to paste plain text: ⌘+⌥+⇧+v (cmd, option, shift, v). This is shown in the Orion "Edit" menu as "Paste and Match Style".
How to Strip Formatting When You Copy and Paste Text: 5 Ways
There are programs that exist only to prevent the rich text copying like Pure Paste — Sindre Sorhus
You can see this in action:
- copy a link from hacker news, like above
- open https://www.editpad.org/tool/online-rich-text-editor
- create a new note
- press ⌘+v to paste the title as a link
- press ⌘+⌥+⇧+v to paste just the link url
It's not really a bug, this is operating as designed. When you paste and "just the title" shows up, it should still be a clickable link in that program.
There is a program called Clipboard Viewer from Apple in the "Additional tools for XCode" package. It shows that there are 10 different types of data set to the clipboard when I right click -> copy a HN article link.
Hi @gp, @bluedaisy is absolutelly correct, moreover it depends on the app your pasting into. And that's desired behavior.
So i'm going to close this one. Feel free to reopen it if needed