zulip / zulip-terminal

Official Zulip terminal client.
Apache License 2.0
661 stars 250 forks source link

Message content copy[/paste] #546

Open neiljp opened 4 years ago

neiljp commented 4 years ago

At least within my terminal, copying a message using terminal selection does not work across multiple lines, as it also selects text in one or both of the side bars.

While we could work around this temporarily using autohide, it would be useful to be able to copy selected message(s) independently of how the UI is set up.

This could be for quoting in another stream, or external to ZT.

A feature like this has also been discussed for the webapp, so there may be reference on chat.zulip.org to this, particularly with respect to copying multiple messages (which could be a followup)

This is sort of a UI 'export', so we may want to explore different targets/formats, to include at least some kind of internal message buffer/reference and the native copy/paste buffer.

neiljp commented 4 years ago

This also has potential connection/usage-with #352

neiljp commented 3 years ago

This could be related to #543 (view/scrolling of single messages).

Ezio-Sarthak commented 3 years ago

I've initiated my work on #543 in #874 days back, and I'm thinking to dig into it now and put forward an iteration. Since I am proposing to show the raw message content in that view, I could add a hotkey to copy message text to the clipboard in that tab, as a later iteration and a separate commit.

neiljp commented 2 years ago

We have a copy (clipboard) hook partially set up for the stream emails, so this seems more achievable now.

Given we now have rendered and raw views (popups), we could support copying from each of those, depending if a user wants the raw or rendered text? A user would then be on a message and use i->r/f->c or similar.

plugyawn commented 2 years ago

@neiljp Looks interesting! Want to check it out as soon as possible. Can I take this up in the coming weeks, post some discussion?