VS Code offers Ctrl + LMB, which takes you to the definition by default. A feature like this would be great for the typst web app.
For built-ins this could send you to the docs (with a popup asking if you want to open a new tab), (see also: typst/webapp-issues#124).
For packages, this could link to the typst/packages entry (once again with a popup) as the version, path and line numbers are known by the compiler.
Use Case
In more complex documents with lots of helper functions or even just checking the docs of a built-in function, having a fast way to be led directly to the definition or documentation would increase productivity.
Description
VS Code offers
Ctrl + LMB
, which takes you to the definition by default. A feature like this would be great for the typst web app.For built-ins this could send you to the docs (with a popup asking if you want to open a new tab), (see also: typst/webapp-issues#124). For packages, this could link to the typst/packages entry (once again with a popup) as the version, path and line numbers are known by the compiler.
Use Case
In more complex documents with lots of helper functions or even just checking the docs of a built-in function, having a fast way to be led directly to the definition or documentation would increase productivity.