Feature #1111
closedAdd a context menu option to copy link text
Added by ask low about 1 year ago. Updated 4 months ago.
0%
Description
Copying URL exists. But not link text. Sometimes need to copy the actual text of the link that the url holds.
Updated by ask low about 1 year ago
There's no workaround for this. Holding the link obviously opens link menu.
There's one very tricky workaround exists, where if there is some non link text around the link's surroundings, holding that brings text selection, then dragging the two ends towards the link text & then copying. This is very absurd workaround, that only works if there's text around the link. But not all links have free text lying around.
Updated by Soren Stoutner about 1 year ago
- Subject changed from copy link text to Copy link text
- Assignee set to Soren Stoutner
- Priority changed from 4.x to 3.x
That is a good idea. I am not sure if WebView currently exposes the link text as an option, but I will take a look.
Updated by Soren Stoutner about 1 year ago
- Subject changed from Copy link text to Add an context menu option to copy link text
It turns out that WebView doesn't easily expose the link text when creating the context menu. There might be some way to manually extract the information or it might have to wait until Privacy WebView in the 4.x series.
Updated by ask low about 1 year ago
I believe other browsers like FOSS, Lightning, etc might have their own way of implementation. Might worth looking into them ?
Updated by Soren Stoutner about 1 year ago
I am not aware of a WebView based browser that can do this. Can you provide a screenshot?
Updated by ask low about 1 year ago
Fulguris did it btw
https://f-droid.org/en/packages/net.slions.fulguris.full.fdroid
Here's the UI code:
https://tyny.to/s20d6c
Here's how it works:
https://tyny.to/s6ff41
Updated by Soren Stoutner about 1 year ago
- Priority changed from 3.x to Next Release
It looks like he is getting the data from:
You can see this in:
I will take a look and see if I can implement something similar.
Updated by Soren Stoutner 5 months ago
- Subject changed from Add an context menu option to copy link text to Add a context menu option to copy link text
Updated by Soren Stoutner 4 months ago
- Status changed from New to Closed