quarto-dev / quarto

Quarto open-source scientific and technical publishing system
https://quarto.org
GNU Affero General Public License v3.0
315 stars 26 forks source link

Reopen preview without restarting server #371

Open memeplex opened 7 months ago

memeplex commented 7 months ago

The current preview experience feels a bit rough around the edges:

The first point may be okeyish. But I believe the second one needs improvement. Closing and opening preview panes is a common operation since the pane uses screen real estate. That the server stays running is a red herring that makes one believe that a new panel will just reconnect to it. Relaunching the server is pointless and a bit slow, also breaks any open connection from an external browser since the port is changed.

Perhaps an option to set the port that, when active, forces the preview pane to reconnect instead of launching a new server (I assume this is because the previous port was lost at that point).