[Top][All Lists]

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

Re: Killing org hyperlinks with one key

From: Alexandros Prekates
Subject: Re: Killing org hyperlinks with one key
Date: Fri, 10 Jun 2022 09:45:27 +0000

On Thu, 09 Jun 2022 11:11:06 +0200
Emanuel Berg <> wrote:

> Alexandros Prekates wrote:
> >>> Trying to kill an org link+description  
> >> 
> >> You have an example what that looks like/is?  
> > 
> > That's how it look complete: [[LINK][DESCRIPTION]]
> >
> > And Org by default displays only the Description part.
> > So i'd like a function to kill the complete hyperlink while
> > it's not visible completely.  
> Yes, but how does it look in its original context?

In the original context , if i understand you, it looks
as simple text with a different face and underlined.

> One can't write a function without it ...
> But you can do it yourself ... use `kill-new' and
> `thing-at-point',
>   (kill-new (thing-at-point 'url t))
> Lousy that Org cannot do this already!

Thanks for the idea of using thing-at-point.

I'm also checking Invisible Text .

Here is the fuction that toggleis org links display:
(defun org-toggle-link-display ()
  "Toggle the literal or descriptive display of links."
  (if org-link-descriptive (remove-from-invisibility-spec '(org-link))
    (add-to-invisibility-spec '(org-link)))
  (setq org-link-descriptive (not org-link-descriptive)))

buffer-invisibility-spec seems to hold invisible text.


reply via email to

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