Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Feature request: Add option to preview whichever file is open on the source pane #298

Open
jiwonac opened this issue Jun 8, 2024 · 1 comment

Comments

@jiwonac
Copy link

jiwonac commented Jun 8, 2024

Feature Request

Suppose you are previewing foo.typ. I want to be able to quickly preview bar.typ by clicking on the bar.typ source code.

Use Case

I have a project where I have several typst files that produce separate PDF files. I would like to be able to switch between the different files quickly. This behavior is similar to how Markdown Preview Enhanced works.

@Enter-tainer
Copy link
Owner

I agree this sounds useful in your case but typst-preview works very different from markdown preview. It is much more heavy than that. Namely, each preview panel need a preview server, and each sever launch multiple threads and typst compiler.

Another thing is that not all typst source file is preview-able. So user may see a lot of empty panel when editing these files. This can be unexpected for certain cases

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants