Skip to content

Feature Request: Glob Context Support #116

Closed

Description

@gabrielbryk

Please consider adding support for using glob patterns to automatically select workspace files for context. Manually choosing files can be tedious, so defining context via globs would automate this process, improving efficiency and accuracy.

Ideally, this would allow multiple patterns (e.g., "src/**/*.py", "docs/*.md") and crucially, exclusion patterns using ! (like "stuff/i/want/*", "!stuff/i/want/but/not/this/*" or "!src/tests/**"). This offers precise, rule-based control over the context provided to Gemini, similar to how .gitignore or other build tools handle file selection.

Activity

  1. robertpiosik commented on Apr 14, 2025

    @robertpiosik
    Collaborator

    Hi, how do you envision adding/removing them? We already have an option of saving context selections (undocumented yet, sorry for that):

    Image

    It works differently but you can resort to it for the time being.

  2. locked and limited conversation to collaborators on Apr 25, 2025
  3. converted this issue into a discussion #159 on Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions