mlem icon indicating copy to clipboard operation
mlem copied to clipboard

Long press links

Open Emiliaaah opened this issue 2 years ago • 4 comments

Introduction

It would be great if there was an option to long press links "like Apollo", that opens the link in a pop-up with a few options below it.

I personally used this a lot in Apollo when I just wanted to share or copy a link for example.

Apollo:

https://github.com/mormaer/Mlem/assets/55017867/67406631-e944-41be-a17e-3f53b97d17a2

Requirements

An option should be added for long pressing links where you get a pop-up with a preview of the site and a few options to for example share, copy or open the link.

Emiliaaah avatar Jun 24 '23 11:06 Emiliaaah

This is unfortunately tricky to do from a technical standpoint. I'm yet to see another open-source project implement this. If anyone knows how it's done, let us know :)

Sjmarf avatar Jan 16 '25 20:01 Sjmarf

This actually already seems to be working in the App Store release, so I'll be closing this issue.

Emiliaaah avatar Feb 14 '25 19:02 Emiliaaah

This is sort-of implemented, but with a cheap technical workaround. It works for post links, but not text links in post/comment bodies. Apps like Apollo, Safari, GitHub etc had a solution that worked across-the-board for all links in the app.

Apologies, I should have made read the post content a little more closely and made my comment above more clear. I'd prefer to keep this issue open for now so that we can implement it properly across-the-board in future.

Sjmarf avatar Feb 14 '25 20:02 Sjmarf

That's completely fine, for me the thing I was mostly looking for was the currently available functionality. Having this available for normal links in post/ comment bodies would be awesome!

Emiliaaah avatar Feb 19 '25 20:02 Emiliaaah