noctuid / link-hint.el

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

Fix customize widget links #32

Closed stepnem closed 4 years ago

stepnem commented 4 years ago

Customize widgets have no category property, so `button-at' doesn't work.

This also removes the :copy action. Maybe we could find a way to keep it, but I couldn't really think of any use case, and in any case the ability to invoke the widget actions is certainly more important than treating them as text, whatever that was supposed to do.

noctuid commented 4 years ago

I think copy is potentially useful. It may be very rare that it would be useful, but I would rather it work. Maybe there's a better way, but (plist-get (cdr (get-char-property (point) 'button)) :tag) works for me.

noctuid commented 4 years ago

Was having issues with checking out the branch with forge/magit. Cherry picked and added my suggestion.