Skip to content

load project into context with one command such as gptel-add-project #938

Closed as duplicate
@peterbecich

Description

@peterbecich

IF your feature request is related to a problem
gptel-add and gptel-add-file can be used to load files one-at-a-time.

It would be nice to load an entire project, determined by project.el or Projectile, in one command.

Describe the solution you'd like
The command will query project.el or Projectile for all tracked files of the project. Then the command will add these files to the gptel context.

Describe alternatives you've considered

When operating in a project.el or Projectile project, make gptel load the files of this project automatically (enabled by a configuration option).

It may be this request is better suited to the project-manager side. Projectile provides the command projectile-grep. All files in the project are passed as the file inputs to grep, seamless to the user. The same could be implemented for gptel, maybe be projectile-gptel-add.

This eliminates the work of traversing the file tree and adding all files to the context manually. Following this, files could be manually removed from the context.

Additional context

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions