tuskyapp / Tusky

An Android client for the microblogging server Mastodon
https://tusky.app
GNU General Public License v3.0
2.49k stars 390 forks source link

Longpress to copy a link in a toot #1415

Open tasn opened 5 years ago

tasn commented 5 years ago

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.


JuanjoSalvador commented 5 years ago

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

Tak commented 5 years ago

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 )

toas-koas commented 2 years ago

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

SeriousBug commented 1 year ago

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.