Skip to content
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

M-x quarto-preview does not refresh #5

Open
shirdekel opened this issue Jul 5, 2022 · 7 comments · May be fixed by #24
Open

M-x quarto-preview does not refresh #5

shirdekel opened this issue Jul 5, 2022 · 7 comments · May be fixed by #24
Labels
enhancement New feature or request

Comments

@shirdekel
Copy link

Running M-x quarto-preview on a .qmd file previews as expected, but does not refresh when the document is changed and saved. The expected behaviour can be seen when running quarto preview file.qmd in a shell.

@shirdekel shirdekel changed the title quarto-preview does not refresh M-x quarto-preview does not refresh Jul 5, 2022
@cscheid cscheid added the enhancement New feature or request label Jul 5, 2022
@cscheid
Copy link
Contributor

cscheid commented Jul 5, 2022

This is by design, in order to match the behavior of other markdown emacs modes.

Nevertheless, when quarto-preview is running, you can get a refresh by calling quarto-mode-markdown-command, or calling markdown-command (which is the standard way of building markdown files in the markdown polymode). In my configuration of emacs, that's C-c C-c m.

If you want to propose a PR that adds the ability to customize this behavior, I'd be happy to look it over. It'd have to add a customization variable that controls the creation of the command parameter in make-process.

With that said, I won't have time to do this until at least mid-August.

@jmburgos
Copy link

Perhaps mention this in the main site? According to the current description, "Start a quarto preview server that watches quarto content for changes and automatically refreshes it".

@cscheid
Copy link
Contributor

cscheid commented Oct 14, 2022

Good catch, that's stale documentation.
EDIT: fixed now.

@henningninneh
Copy link

henningninneh commented Nov 4, 2022

For me that's M-x markdown-preview or M-x markdown-export. I was also very confused about this issue, until I found this thread.

@dalanicolai
Copy link

dalanicolai commented Nov 15, 2022

EDIT

Haha, just noticed this was already mentioned in the original issue. Anyway, might be handy to leave this message here...

END EDIT

I would say a better workaround is to start the quarto preview ... manually from a terminal. Then the preview update works as expected...

But I do not understand this design decision. Why does it have to match the behavior of other markdown modes (b.t.w. also it does not match the behavior of markdown-soma?

Quarto looks otherwise great b.t.w.! Thanks for this nice software...

@henningninneh
Copy link

I agree that this behavior should at least be easily customizable. And, of course, I agree with the praise. :)

@cscheid
Copy link
Contributor

cscheid commented Nov 15, 2022

@henningninneh emacs is no longer my day-to-day editor and we have a ton of other things to work on, so unfortunately this is relatively low-priority right now. But we appreciate pull requests!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants