Ability to auto-select files to add to context by using @reference in create prompt window #190
Replies: 6 comments 7 replies
-
|
Hi, nice idea, thanks! How should |
Beta Was this translation helpful? Give feedback.
-
|
Probably exactly verbatim, with the relevant codesnippet backticked with line reference. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @azidancorp, you can reference files from context menu: Please let me know how you find it 🤓 |
Beta Was this translation helpful? Give feedback.
-
|
Couldnt find it at first, seems like Windsurf hasn't detected extension update - but tried now in VSCode. Wonder if thats related to any other issues I have..anyways It works! However my main intent behind @referencing in prompt-window is to avoid traversing through the filetree manually/with the cursor - otherwise I could just check the include box as I am currently. Example of Roo prompt window here: Was always a python programmer, wish I knew JS beyond basic vibecoding, otherwise I'd love to try making PRs..alas I'm stuck to raising issues (for now). Heres my attempt at finding relevant Roo scripts (yup, using gemini coder to help) - would really love this feature but I think this is as far as I know how to help! I think you already might already be halfway there if already tracking workspace files Glad to see the rapid development! |
Beta Was this translation helpful? Give feedback.
-
|
I'm trying to find the best solution to fit in the general vibe of working with Gemini Coder. It is a little bit different from other tools as it resolves around file tree and prompt sections: Referencing regular context files in instructions would not play nicely as we don't include them inline with text but above in a dedicated section. It would also quickly expand the chat box to unusable sizes. Suggested workflow is to use command "Go to file...", then you can write file name, hit space, enter some part of directory. This does not work this nicely in Roo. In there you hit space and you're out of the file selection tool. Once you have file opened, it is included in context and you can reference it in instructions if you want to direct LLM to something specifically: Let me know if it makes sense. |
Beta Was this translation helpful? Give feedback.
-
|
This would be a great feature to add: compose messages naturally and handle the context addition automatically behind the scenes. Below is the suggested flow on how it could work. Example input:
Transformed to: PS: I've been doing this lately - manually ticking the checkboxes in the list and referencing the files with their relative paths in the chat input, initial messages are sent similar to the example above, and I always got the results as expected using Gemini 2.5 Pro. |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to be able to construct a prompt by referencing files using an @reference to relevant files (ideally with tab-complete by string matching to an indexed tree of the workspace filenames). I believe Cline/Roo have a nice implementation of this to look at.
Example prompt:
Please reference @settings.py for style/layout inspiration, and the documentation @rio.Text.txt @rio.TextInput.txt @rio.Column.txt @rio.Dropdown.txt etc, and make a page for user @search.py (currently a placeholder) that is based on the fields present in @profile_extractor.py#L29-82 as well as @example_data.json
The above will automatically select the settings and search files from codebase, and also attach the relevant component documentation files I have locally as well.
Beta Was this translation helpful? Give feedback.
All reactions