[Feature Request] Add imported files to context

I’m not sure how feasible this is, but one of the most frequent things I do in Cursor that takes a lot of time that could probably be automated is adding files to the context which are imported in the file I’m working in. It’d be incredible if I could just @ mention the imports of the file and automatically pull in all referenced files so that I don’t have to do it manually.

I mostly use TypeScript, where it technically could be done with static analysis. It would probably be difficult to implement for all languages, but perhaps a fast model like gpt-4o-mini could be used to scan imports and compare them against the project file tree to figure out which files to import.

2 Likes

Ditto