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?
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.