question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copying text has new lines between time, username, and message

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:25 (25 by maintainers)

github_iconTop GitHub Comments

4reactions
AlMcKinlaycommented, Jun 16, 2017

Do you really want this to be copied as:

Hi!
14:41 <starquake> How are you?!
14:41 <lounge-user29>

Yes.

1reaction
AlMcKinlaycommented, Jun 14, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found