noctuid / link-hint.el

Pentadactyl-like Link Hinting in Emacs with Avy
GNU General Public License v3.0
160 stars 22 forks source link

[Feature Request] implement something like `link-hint-display-link` #214

Open greg-minshall opened 1 year ago

greg-minshall commented 1 year ago

sometimes, one would just like to see what the underlying link is. some sort of link-hint-display-link might be nice.

here's something that doesn't really do the right thing (and doesn't actually use the infrastructure link-hint.el provides), but gives an idea. i could try to flush this out, if of interest.

(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 "link: %s" (plist-get link ':args)))))))