dash.nvim
dash.nvim copied to clipboard
Previews?
Is it possible to enable previews? Might only be possible in GUI vim since the docs are HTML documents.
Could possibly use a terminal browser like elinks for this?
I have this sorta working on a branch, but the previews aren't very helpful as, for example, for MDN, the visible part is basically just a bunch of links at the top.
https://github.com/mrjones2014/dash.nvim/tree/matjones/experimental-previews

As part of #24 we'll need to map keywords/docsets to their directory name on disk -- once that work is completed we can use that to implement something like this: https://github.com/sunaku/dasht/blob/master/bin/dasht-query-line#L101
Just discovered https://www.brow.sh/
this might work better since it can actually render CSS properly.
got previews kinda working with brow.sh but not really usable -- its super blurred

Wdym it's blurry? I have nearsightedness and this is perfectly readable to me.
@lukelex ... you're telling me you can read this code sample? lmao

You know, it might be worth discussing this on the neovim issue tracker, or in their Matrix channel. I know they're quite keen on a documentation browser within nvim, because I've talked about this with them before. Perhaps they're willing to meet you half way on this. Something that can parse HTML/Markdown, where the user can also fuzzy-find over the rendered view, would be perfect.
Most likely they were talking about plaintext or markdown documentation though, not HTML.