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

Do something sensible when copying messages #85

Open
lightquake opened this issue Jul 17, 2014 · 6 comments
Open

Do something sensible when copying messages #85

lightquake opened this issue Jul 17, 2014 · 6 comments

Comments

@lightquake
Copy link

This is what happens if you select an entire message and copy it:

classinstance 10 minutes ago July 17th 2014, 3:36:21 pm

sender  
message
zsig

Can we do anything to make this better? In particular, I think something like this would be good:

class / instance / sender / July 17th 2014, 3:36:21 pm
message
----
zsig
@jrafidi
Copy link
Contributor

jrafidi commented Jul 22, 2014

Supposedly there's this HTML5 clipboard API, but from what I can gather, it isn't actually established yet? The best idea I have (without using Flash) is the suggestion in this page:

http://www.quora.com/HTML5/How-can-you-copy-to-clipboard-without-Flash

Anyone know more about this?

@davidben
Copy link
Contributor

There's no need for Flash here. Initiating a copy is harder, but this only requires reacting to a copy and overriding it. There's an event for that which works just fine. See https://davidben.net/copy-test.html

@davidben
Copy link
Contributor

(And there are APIs for determining what text in what nodes are part of the current selection.)

@jrafidi
Copy link
Contributor

jrafidi commented Jul 22, 2014

Well, I learned something today. With which selection should we trigger this? When all the text of a message is selected?

@lightquake
Copy link
Author

I think selecting just the text should only copy the text. Maybe do it only when all the nodes are selected, or all the nodes but the class (since that one can be kind of tricky to select).

@jrafidi
Copy link
Contributor

jrafidi commented Jul 22, 2014

I feel like even that is still difficult to do properly. Is it worth it to make a shortcut button that does this for you? Like next to the other bottom right icons?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants