Recent pull request copy / paste behaviour change #22300
-
When copying from a pull request the pasteboard will contain formatting characters from the underlying markdown. For instance, copying an item from a list will be prefixed with an asterisk. This is a recent change with the previous behaviour copying only selected characters to the pasteboard. This behaviour is unintuitive and potentially dangerous. For instance, a PR may contain a markdown list of commands to execute for QA. If copying an item from the list into a prompt, the command will be prefixed with an asterisk, silently modifying the command without alerting the user. Is it possible to turn this behaviour off? If the underlying markdown formatting is required, the user can use the ‘edit’ view of the PR. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @john-n-smith, I’m not certain that this is an intentional change. I need to do a bit more investigation. Could you please tell me what browser you’re using? Also, when you copy text from a pull request, are you copying text from files included in the pull request or from the body of the message? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi @that-pat, thanks for getting back to me, I’ve observed this behaviour on both Safari and Chrome, both on OS X. I’m copying from the body of the PR. Here’s an example where list markdown is being added to the pasteboard although not selected: Thanks for you time, John. |
Beta Was this translation helpful? Give feedback.
-
Hi @john-n-smith, We made a recent change to how this is being handled. Would you mind trying this again and letting me know if it works the way that you expect it to now? Thanks! |
Beta Was this translation helpful? Give feedback.
-
That’s now working as expected, thanks for you help! |
Beta Was this translation helpful? Give feedback.
Hi @john-n-smith,
We made a recent change to how this is being handled. Would you mind trying this again and letting me know if it works the way that you expect it to now?
Thanks!