hsitz / VimOrganizer

VimOrganizer is partly a clone of Emacs' Org-mode, and partly a front end to Org-mode itself. Do Org in Vim.
http://vimeo.com/31531308
518 stars 67 forks source link

Link render bugs #68

Open potash opened 10 years ago

potash commented 10 years ago

URLs are not hidden when they do not immediately follow an *. E.g.

*[[url]][[description]]

works but

* [[url]][[description]]

does not. Neither does

* click [[url]][[here]]

Also links with multiline urls are not concealed properly. Instead of being removed, it is replaced with whitespace and the description follows.

hsitz commented 10 years ago

On Fri, Mar 14, 2014 at 9:59 PM, potash notifications@github.com wrote:

URLs are not hidden when they do not immediately follow an *. E.g.

*[[url]][[description]]

works but

  • [[url]][[description]]

also when does not. neither does

  • click [[url]][[here]]

I haven't looked at this stuff for a long time. Not sure whether I made conscious decision not to have links in headlines b/c too hard to implement, or whether I just forgot. Seems to me now like it would be simple change to syntax specs but I'm not sure.

Also links with multiline urls are not concealed properly. Instead of being removed, it is replaced with whitespace and the description follows.

Almost certain this is because conceal in Vim works only on single lines. Doing something to enable on multiple lines would be more complicated kludge, involving multiple concealed regions. I'm not sure what your "multiline" url is. If you avoid wrapping then can't all url's be single line url's? That is, cr/lf is not part of properly constructed url?

-- Herb

potash commented 10 years ago

Ah, okay they work outside the headings. And I had enabled wrap (for formatting long item bodies) but disabling it makes long urls work fine. Thanks!