Hello Everyone,

i’d like to ask for your opinion on the following issue:

i’ve created my own knowledge base based on asciidoc, with some custom shell scripts and a go application for creating backlinks, tags etc. I’ve chosen this way, as most solitions are based on markdown, which is not standarized and very limited compared to asciidoc, especially from a dev pov.

All my editing, searching etc. is done via neovim, which is very comfortable.

However, i’d like to improve the user experience with the setup, as i’d also like to see the rendered version, especially when adding mermaid diagrams and other things.

I’ve tried some plugins for the browser, which render the view and update automatically, however they are not in sync with my nvim, so i have to scroll on every save, if i want to see the rendered version. That’s not ideal.

Any ideas?

Ideally I’d like some kind of application template, where i can embed a terminal / neovim and a webbrowser, ideally linked via lua scripting, so it integrates nicely. It can also be a completely separate application like anytype, however i’ve not seen anything that has a proper vim-like module editing support & allows for asciidoc rendering instead of markdown.

  • 𝘋𝘪𝘳𝘬
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Any ideas?

    Pandoc allows conversion from and to various formats. You could use an autocmd to generate a rendered version of your document and access this version with your web browser. In your browser you could use an extension that automatically refreshes a tab every x seconds.

    Would be a very manual and not-so-elegant variant, but hey :)

    • TheWandererOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      The conversion is not an issue, there are already multiple tools for that, including a browser plugin with auto refresh.

      However the tight integration with the editor, in this case neovim, is missing. At the bare minimum it should show the changed area curently being edited, ideally scroll with the editor scrolling like with common markdown extensions. Currently it just shows a static site that refreshs.