emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Viewing link information


From: Maxim Nikulin
Subject: Re: Viewing link information
Date: Tue, 10 Nov 2020 23:42:44 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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

[Prev in Thread] Current Thread [Next in Thread]