* How to hide square brackets around [[url][links]]?
@ 2023-09-21 16:07 William Denton
2023-09-22 8:49 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: William Denton @ 2023-09-21 16:07 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 908 bytes --]
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to hide square brackets around [[url][links]]?
2023-09-21 16:07 How to hide square brackets around [[url][links]]? William Denton
@ 2023-09-22 8:49 ` Ihor Radchenko
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2023-09-22 8:49 UTC (permalink / raw)
To: William Denton; +Cc: emacs-orgmode
William Denton <wtd@pobox.com> 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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-22 8:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-21 16:07 How to hide square brackets around [[url][links]]? William Denton
2023-09-22 8:49 ` Ihor Radchenko
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).