Enter-tainer / typst-preview

[DEPRECATED] Use tinymist instead

Home Page:https://Enter-tainer.github.io/typst-preview/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add an option to enable automatically opening preview window

viocha opened this issue · comments

Just like the way Markdown Preview Enhanced behaves

can you elaborate?

when you open the source file, the preview window is automatically displayed on the side.

image

动画

Thanks for your screen recording. It's good to have this feature. But there is one thing I concern. A typst-preview tab is much more heavier than a markdown preview(you may refer to https://enter-tainer.github.io/typst-preview/arch.html if you are interested). So launching too much preview tab would become a problem. Another problem is that not all typst file is previewable, such as template files. opening preview for these files doesn't make sense

link similar design issue nvarner/typst-lsp#285

Thanks for your screen recording. It's good to have this feature. But there is one thing I concern. A typst-preview tab is much more heavier than a markdown preview(you may refer to https://enter-tainer.github.io/typst-preview/arch.html if you are interested). So launching too much preview tab would become a problem. Another problem is that not all typst file is previewable, such as template files. opening preview for these files doesn't make sense

Maybe it could be an option in .vscode/settings.json? something like

"typst-preview.main": "main.typ",
"typst-preview.automatically-show": true

where you specify the main file, this only makes sense in projects where only one file should be compiled.