-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New runtime option nbReload to reload the page if open ? #135
Comments
I'm not sure how this would be done, nimib would somehow have to know that a browser has the file open and then somehow request the browser to reload the page. I'm not sure if that's possible (in a simple, portable way for all browsers). There are options for you, though:
|
Live Server extension works exactly how i wanted it, thank you. |
in principle I think there should be a way to this in nimib without relying on an external plugin. We would need to serve the file through localhost, watch for changes and serve again. not sure if a runtime option is the best way* to do that (if it is I might want to call it An automatic reload is indeed something missing in nimib that would help iterating on a document. I do not use that extension (nice to know it exists) and end up having tons of tabs open... *although I cannot resist thinking how to implement this with a runtime option:
|
Can we run a small local server with node.js maybe ? |
Defintely not with nodejs ;), but likely with a simple Nim server like nimhttpd + some watch mechanism. I am not sure if this use case warrants for something more than that. |
Currently nbShow opens the file in the browser after c -r, but it does not care if it is already opened, so it always opens up a new instance. Would it be possible to have a nbReload option that would reload the page instead ? Or even open the page if it's not open, and then reload on it's subsequent runs ?
The text was updated successfully, but these errors were encountered: