Copying text has new lines between time, username, and message
See original GitHub issueI think this is due to the new layout in chat.
When you copy something like:
09:54 YaManicKill test
What you get copied into your clipboard is:
09:54
YaManicKill
test
This is probably due to the new flexbox layout. Not sure of the best way to do it, we could intercept the copy and remove some of the new lines, but that feels…not great. But I can’t think of a better way to do it.
I feel like this should be a blocker for 2.3.0, but if we don’t have an idea for a fix this week, maybe not.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:25 (25 by maintainers)
Top Results From Across the Web
When Copying, Line Wrapped Text Is Inconsistently Broken ...
For step 4, the single line gets broken into multiple lines depending on the size or your terminal and how many lines the...
Read more >Copy to clipboard with break line - javascript
First problem in your code is the $(element).text() jquery text() strips your code from html including the <br> tags. So there is no...
Read more >How do I get Windows Terminal to stop asking me every ...
To change these settings: Hold down the Shift key while selecting Settings in the Windows Terminal dropdown menu.
Read more >Copy a long single-line text from a terminal with undesired ...
You can copy the lines of output without extra newlines (line breaks) if the text was output directly to the terminal.
Read more >Teams Copying text includes persons name
We lose lot of time removing each time the name, the time and the new line. Now, the feature is that it copies...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes.
So, just to update here.
@xPaw found the bug on the chromium bugtracker, and it looks like they aren’t going to fix it anytime soon. It appears css -> copy is completely undefined, which is why they do it differently.
So, as a horrible hacky fix (and because we wanted a way to add <> around usernames when someone copies it, I did #1227.
Enjoy.