quarto-dev / quarto-dev/quarto-cli
Running `quarto preview` should show localhost url more frequently
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Discussed in https://github.com/quarto-dev/quarto-cli/discussions/4779
Originally posted by kdheepak March 12, 2023
Bug description
Currently, when running quarto preview for a while and editing multiple pages, there's lots of output on stdout. 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 restart quarto preview (which before using freeze and cache 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the quarto preview entry point and trace how preview updates write to stdout and handle user input. Done means a user can recover the localhost preview URL after updates or through a documented key action without restarting the preview.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100