2020-11-10 ian martins wrote:
There is a shortcut to copy the link here <https://orgmode.org/worg/org-hacks.html#org98f055b>. You could display it in the same way.

It seems that original question was on viewing link, not copying it.

As to copy, another possibility (borrowed from some stackoverflow answer) is to use text properties:

  (let* ((prop (get-text-property (point) 'htmlize-link))
(target (if (and (listp prop) (eq (car prop) ':uri)) (cadr prop))))

Maybe it is worth adding actions for particular target types, e.g stripping file:// to allow usage of the path in a shell command.


Reply via email to