Tusky icon indicating copy to clipboard operation
Tusky copied to clipboard

Longpress to copy a link in a toot

Open tasn opened this issue 6 years ago • 3 comments

Would be great to be able to longpress on a link to copy it to clipboard instead of having it open in the browser. I'm talking about links inside of toots, not a link to the toot itself.


  • Tusky Version: 8.1

  • Android Version: 8.1 (Lineage 16)

  • Android Device: OnePlus 3T

  • Mastodon instance (if applicable):

  • [X] I searched or browsed the repo’s other issues to ensure this is not a duplicate.

tasn avatar Jul 26 '19 17:07 tasn

I was thinking about this too. Would be nice to have the chance to copy links by this way.

JuanjoSalvador avatar Jul 27 '19 11:07 JuanjoSalvador

Mmm, it looks like ClickableSpan doesn't expose long click. This is doable, but it looks like we'd have to do something like implement our own MovementMethod for CustomURLSpan (or pull in something like https://github.com/saket/Better-Link-Movement-Method )

Tak avatar Oct 07 '19 12:10 Tak

I would like to open links in the TorBrowser first and not in the default browser.

toas-koas avatar Aug 28 '22 09:08 toas-koas

One way to fulfill both copying and opening in other apps would be to bring up the share menu. The share menu typically has buttons to copy the shared link to clipboard, and also has buttons to open in other apps. For example Firefox, Chrome, Tor Browser etc. all add "Open in <...>" to open the link in that browser.

SeriousBug avatar Mar 09 '23 06:03 SeriousBug