bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50500: Add ways to copy id bookmark link in eww


From: Yuchen Pei
Subject: bug#50500: Add ways to copy id bookmark link in eww
Date: Fri, 10 Sep 2021 16:43:40 +1000
User-agent: mu4e 1.4.13; emacs 27.2

Hello,

I'd like to add a functionality to copy the bookmark link to the kill ring when the point is on a element with an id attribute.

For example, say I am reading <http://www.gnu.org/licenses/gpl-3.0.html>, and Section 13 looks interesting which I want to save for reference. By calling the said function while the point is at Section 13, the link <http://www.gnu.org/licenses/gpl-3.0.html#section13> is added to the kill ring.

I imagine it makes sense to bind it to w when the point is not on a link.

I took a look at eww.el and shr.el and I'm not sure where to start to add this functionality. Does anyone have any pointers?

--
Best,
Yuchen

PGP Key: 47F9 D050 1E11 8879 9040  4941 2126 7E93 EF86 DFD0
          <https://ypei.me/assets/ypei-pubkey.txt>

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]