Re: emacs: keybindings in notmuch-show for copying the target of a link for a text/html part? (M-x shr-copy-url)

Subject: Re: emacs: keybindings in notmuch-show for copying the target of a link for a text/html part? (M-x shr-copy-url)

Date: Mon, 30 Jan 2023 18:00:36 +0300

To: Daniel Kahn Gillmor

Cc: Notmuch Mail

From: Greg Minshall


Daniel,

too late, i realized that my suggestion of link-hint isn't exactly a
match, as it is "missing" a "link-hint-display-hint" (or some such)
function.

i just now suggested such a function, but the below, which is *not*
fully formed, might occasionally be helpful if you do install link-hint
(which i also find very useful in daily use).

cheers, Greg

----
(defun link-hint-display-link ()
      "Display a visible link of a supported type."
      (interactive)
      (require 'link-hint)
      (avy-with link-hint-display-link
        (let* ((link-hint-types (link-hint--valid-types :copy))
               (links (link-hint--get-links))
               link)
          (when links
            (setq link (link-hint--process links))
            (when link
              (message (format "link: %s" (plist-get link ':args))))))))
----
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: