Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent ``` in copied text #5459

Closed
stormenergy91 opened this issue Mar 11, 2024 · 3 comments
Closed

Prevent ``` in copied text #5459

stormenergy91 opened this issue Mar 11, 2024 · 3 comments
Labels

Comments

@stormenergy91
Copy link

After update the version 3.9.1 now when i copy part of text that is inside at a code block, when i paste somwhere the text is always inside ```.

I could be usefull if i need to copy it a new markdown document, but in my case in the code block I have linux terminal commands and for each command now i need to past in textedit, remove the ``` chars copy again and paste to the terminal.

Is possibile to have on the contextmenu (on right click) a voice with "copy as code" and "copy as text"?

Thanks

@stormenergy91 stormenergy91 added the bug Something isn't working label Mar 11, 2024
@susnux
Copy link
Contributor

susnux commented Mar 12, 2024

I also noticed this and think it is really bad UX wise, I would expect the text to be copied as is not the source code.
Especially if only copying parts of the code block.

Can we maybe add it with different mime types? Like adding it with text/markdown and a plain version with text/plain to the clipboard?

This way you still can past markdown where supported but get the plaintext as expected otherwise.

@susnux
Copy link
Contributor

susnux commented Mar 12, 2024

BTW this is a regression of: #5212

@juliusknorr
Copy link
Member

Thanks for reporting. This is tracked and being worked on already in #5331

@juliusknorr juliusknorr closed this as not planned Won't fix, can't repro, duplicate, stale Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants