tinymist icon indicating copy to clipboard operation
tinymist copied to clipboard

scan context and allow auto import

Open Myriad-Dreamin opened this issue 11 months ago • 1 comments

like what rust analyzer does.

Myriad-Dreamin avatar Mar 12 '24 06:03 Myriad-Dreamin

image

Myriad-Dreamin avatar Mar 14 '24 11:03 Myriad-Dreamin

I thought it useful to have indices on symbols in other files, and use it without need to create an import item manually, like rust-analyzer inserting an use item when you reference some symbols in other crates. But I find it less useful in typst in practice, where you import all symbols in your template and set up preludes as well by a single #import "template.typ": *. In your template.typ you can do this for example:

#import "@preview/physica:0.x": *
#import "@preview/t4t:0.x": *

Myriad-Dreamin avatar May 27 '24 06:05 Myriad-Dreamin

Can't you do the same in Rust?

Andrew15-5 avatar May 27 '24 06:05 Andrew15-5