Re: How to hide square brackets around [[url][links]]?

2023-09-22 Thread Ihor Radchenko
William Denton  writes:

> Sometimes when searching with Swiper, the display of (some) links is changed 
> and 
> instead of seeing the anchor text formatted as a link I see the full raw 
> [[URL][anchor text]].
>
> How can I make this go back to showing just the anchor text?  I've tried 
> toggling visible-mode and using org-toggle-link-display but neither work, so 
> I 
> have to C-x C-v and reload the file.  Should these commands be reformatting 
> all 
> the links in the buffer, and the fact they don't work is a sign of the bug?

For isearch compatibility, Org has to convert back-and-forth between
overlays and text properties. If `org-toggle-link-display' does not
work, we most likely have some isearch overlays leftover and not
converted back.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



How to hide square brackets around [[url][links]]?

2023-09-21 Thread William Denton
A fix by Ihor a few weeks ago solved a problem ("org-cycle does not unfold some 
subtrees") but I think there's still a related little bug with searching, 
perhaps just with Swiper, that I can't replicate but am watching.


Sometimes when searching with Swiper, the display of (some) links is changed and 
instead of seeing the anchor text formatted as a link I see the full raw 
[[URL][anchor text]].


How can I make this go back to showing just the anchor text?  I've tried 
toggling visible-mode and using org-toggle-link-display but neither work, so I 
have to C-x C-v and reload the file.  Should these commands be reformatting all 
the links in the buffer, and the fact they don't work is a sign of the bug?


Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
CO₂: 418.58 ppm (Mauna Loa Observatory, 2023-09-20)