Open refaelsh opened 3 months ago
is this planned?
Not at the moment. But it's not forgotten. ☕️
Currently, the entire website is reloaded when saving, which currently has a negative impact on performance every time a change is made. That is why this option is currently not available.
It was more important to me to update the preview when saving as a first step. This is also how I use it.
I have an older extra branch to switch to the hopefully better performing web sockets for the preview. However, this is just a first concept and I already have a few ideas for implementation. But I don't have the time at the moment.
You can use this plugin autosave.nvim. It will save the file as you type, so the browser will reload when it is updated.
However, I think the Asciidoctor.js library is kinda slow (at least when comparing to marked.js for Markdown), which may makes you uncomfortable when using with autosave.nvim. But anyway you can give it a try, and reply to my comment here if there is a problem
Ok. I just tried it, it's a bit slow to respond, but enough for me.
P.S. This autosave.nvim plugin is great in general. I was not aware of it. Thank you!
Currently, the preview updates when I save the file. Can you please make it so that it will update when I type? Without the need to save? Thank you :-)