unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Notmuch Mail <notmuch@notmuchmail.org>
Subject: emacs: keybindings in notmuch-show for copying the target of a link for a text/html part? (M-x shr-copy-url)
Date: Thu, 26 Jan 2023 15:52:15 -0500	[thread overview]
Message-ID: <874jsd3tog.fsf@fifthhorseman.net> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 781 bytes --]

Hey notmuch folks--

When using notmuch-emacs, and looking at a text/html part, i sometimes
want to know where a given link is pointing to without clicking on it --
e.g. to open it in an alternate browser.

it appears that by positioning the point somewhere within the link and
doing "M-x shr-copy-url" i can copy the target of the link to the kill
ring.

This seems useful enough to me (and i'm now receiving enough
text/html-only messages) that i'd like to have some sort of keybinding
to make that easier to operate.

I think it can be added to the mode-map in emacs/notmuch-show.el.  does
anyone have a preference about what keybinding to use for it?  Or is
there some reason to not provide a default keybinding to this
functionality in notmuch-show mode at all?

       --dkg

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2023-01-26 21:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-26 20:52 Daniel Kahn Gillmor [this message]
2023-01-27 11:42 ` emacs: keybindings in notmuch-show for copying the target of a link for a text/html part? (M-x shr-copy-url) David Bremner
2023-01-27 13:33 ` Gregor Zattler
2023-01-27 14:05 ` Greg Minshall
2023-01-28 11:02   ` inwit
2023-01-30 15:00   ` Greg Minshall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jsd3tog.fsf@fifthhorseman.net \
    --to=dkg@fifthhorseman.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.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).