Glob or regex patterns for recursively adding folders and files to prompt context #2654
nickchomey
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, when adding a folder to Roo’s context (e.g., using @folder/path), the inclusion is non-recursive - only the top-level files are considered. It would be very useful to have the option to include folders recursively, so that entire repositories or nested subdirectories can be added in a single step.
One possible approach would be to support glob or regex patterns, such as allowing
@folder/path/**
, or even@folder/path/**/*.js
to recursively include all desired files within the specified path and its subdirectories.I see that with the new ripgrep mechanism used for the context search (implemented in #1824), it obviously just returns
No results found
if you add a wildcard to the string. So, something within that would need to be modified to accept wildcards/globs/regex patterns.This would allow us to more easily add the appropriate context to our prompts
Beta Was this translation helpful? Give feedback.
All reactions