Running quarto preview
should show localhost url more frequently
#4779
Replies: 6 comments 16 replies
-
Which IDE are you using? |
Beta Was this translation helpful? Give feedback.
-
I just close it accidentally. For context I was porting my blog to quarto over the weekend and writing a tutorial for Julia at work before that, in both cases I had |
Beta Was this translation helpful? Give feedback.
-
FWIW I also tend to have this problem—I'm previewing website updates and making liberal use of hot reload, and then at some point I realise that I accidentally closed the tab a while ago. The thing that is really helping me with this is working in development containers, which is a lot easier for me now that Quarto builds on aarch64 (and hence I can run R + Quarto devcontainers on Apple Silicon). When you're running in a dev container or on a remote host, VSCode catches the ports used by Quarto (or other web servers) and automatically forwards them to the host so that you can connect to them invisibly. It also has a Ports pane that maintains a list of forwarded ports, which processes opened them and which ones continue to have a running processes attached, which makes it easy to get back to my preview if I lose it. There are even buttons to open that port on the host in an external browser or in the VSCode preview if I prefer the latter and have closed it! Unfortunately you don't get this pane when developing locally, but it's very nice, and dev containers are much easier to use now! |
Beta Was this translation helpful? Give feedback.
-
I run into this all the time, and I think it's worth considering for a few reasons:
|
Beta Was this translation helpful? Give feedback.
-
Quick note, the port can be set which will avoid having to remember the preview URL, see https://quarto.org/docs/reference/projects/options.html#preview. Closing as: |
Beta Was this translation helpful? Give feedback.
-
I would also like to see the url reported more frequently. My current solution is to look through my browse history if the tab gets closed. |
Beta Was this translation helpful? Give feedback.
-
Bug description
Currently, when running
quarto preview
for a while and editing multiple pages, there's lots of output onstdout
. If I accidentally close the tab with the preview (and if I'm not able to reopen it because it's been a while), I'm not able to go back to the terminal and see the URL where the preview server is hosting the code. I have to either try to scroll all the way up (sometimes this has exceeded my scrollback buffer) or I have to restartquarto preview
(which before usingfreeze
andcache
took a long time to execute).One of these options would solve it for me - Either show the URL after updates, or allow the user to press a key that prints out the URL.
Checklist
Beta Was this translation helpful? Give feedback.
All reactions