Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Clément Pit--Claudel <clement....@gmail.com> writes: > >> What about having our cake and eating it too? :) We could do just the >> same as what prettify-symbols-mode does with its >> prettify-symbols-unprettify-at-point variable. Namely, we could show >> the brackets when point is at the edge of a link, and hide them >> otherwise. The same trick could be applied to subscripts (I have >> working code for that for a different project, at >> https://github.com/cpitclaudel/company-coq/blob/master/company-coq.el#L4287). >> >> Wouldn't this preserve the flow of reading, while allowing for easier >> editing? > > I have the feeling that it would cause some visual "jumping" when the > link is very different (e.g., wider) than its visible pars. Some links > tend to be very long. So showing the full link is not an option.
We can limit it to a certain number of characters and expand it, like when the width of table columns is limited. BTW: I don’t find that prettify-symbols-mode with (setq prettify-symbols-unprettify-at-point 'right-edge) ruins the reading flow. On the contrary, I would love to port org-entities to use this functionality for at display in buffers. Rasmus -- Together we will make the possible totalllly impossible!