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

add an option to enable automatically opening preview window #140

Open
viocha opened this issue Oct 19, 2023 · 5 comments
Open

add an option to enable automatically opening preview window #140

viocha opened this issue Oct 19, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@viocha
Copy link

viocha commented Oct 19, 2023

Just like the way Markdown Preview Enhanced behaves

@Enter-tainer
Copy link
Owner

can you elaborate?

@viocha
Copy link
Author

viocha commented Oct 19, 2023

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

image

动画

@Enter-tainer Enter-tainer added the enhancement New feature or request label Oct 19, 2023
@Enter-tainer
Copy link
Owner

Enter-tainer commented Oct 19, 2023

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

@Myriad-Dreamin
Copy link
Collaborator

link similar design issue nvarner/typst-lsp#285

@eduardz1
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: Not Planned
Development

No branches or pull requests

4 participants