typst / webapp-issues

Issue tracker for Typst's web app.
https://typst.app
10 stars 0 forks source link

Go To Definition #125

Open tingerrr opened 11 months ago

tingerrr commented 11 months ago

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.

Andrew15-5 commented 7 months ago

In Vim mode, this should be triggered with gd.