I’m trying to improve the Solargraph LSP and a feature that was missing is the ability to open the html pages generated by the LSP. I’ve been able to write the request responses in html files inside the nova.fs.tempdir but I’ve not been able to open them in Nova. nova.openURL with file://... opens the files in the browser but having them directly inside Nova would much better. I guess it could require not only an API for controlling the Preview but also the ability for the Preview to open links not directly inside the workspace (maybe just within the tempdir) or with the file protocol.
Chiming in to say that I’d also appreciate a way for extensions to open a preview tab.
My use case is that I’d like to build an extension for linting and previewing OpenAPI specifications, which would require opening a preview tab that shows a local HTML file.