Open Enivex opened 1 year ago
This is possible, but currently undocumented. It is possible to set the path to the main file in .typstudio/config.json
.
This is possible, but currently undocumented. It is possible to set the path to the main file in
.typstudio/config.json
.
Do I have to create the file myself? I wasn't able to find it.
Anyway, ideally it would detect what the main file is. Especially if there's only a single .typ file in the folder.
Yes, you have to manually create the file for the time being. There will be a user-friendly way to set this in the GUI in the future.
An example of config.json
:
{
"main": "main.typ"
}
There will be a user-friendly way to set this in the GUI in the future.
We should add a warning that appears when trying to compile without a main.typ
, and it will then ask "Do you want to mark the current file as the main typst file?", if the user selects yes, we will write the config.json
for them/make changes to it.
We could also:
main.typ
file automatically with some boilerplate within itWhat do you think of these suggestions @Cubxity?
This caused massive headaches for me ;)
At the very least, this limitation should be written clearly somewhere.