unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#50500: Add ways to copy id bookmark link in eww
@ 2021-09-10  6:43 Yuchen Pei
  2021-09-10 11:15 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Yuchen Pei @ 2021-09-10  6:43 UTC (permalink / raw)
  To: 50500

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 243 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-08-25 14:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-10  6:43 bug#50500: Add ways to copy id bookmark link in eww Yuchen Pei
2021-09-10 11:15 ` Lars Ingebrigtsen
2021-09-10 13:03   ` Yuchen Pei
2021-09-10 16:08     ` Juri Linkov
2021-09-11 12:28       ` Lars Ingebrigtsen
2021-09-11 19:06         ` Juri Linkov
2022-08-25 14:49           ` Lars Ingebrigtsen
2021-09-11 12:34     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).