CodeGPT icon indicating copy to clipboard operation
CodeGPT copied to clipboard

Associate contextual files with prompts

Open jp26jp opened this issue 1 year ago • 1 comments

Describe the need of your request

I use a custom prompt for testing my code. I also have a utils file to speed up the process of mocking objects, which I always have to include in the prompt.

I tried using the prompt:

Use the following context to answer question at the end:

File Path: /Absolute/path/to/file.py

Question:

But it was not able to read the contents of the file.

Proposed solution

Add the ability to include context files in a prompt.

Additional context

It would also be very helpful to be able to include specific contextual files in every prompt.

jp26jp avatar Aug 04 '24 15:08 jp26jp

How did you try the prompt? Did you write it manually yourself, or did you use the 'Include In Context' feature?

Also, support for attaching files and folders directly in the tool window's chat text field was introduced in version 2.9.0.

carlrobertoh avatar Aug 20 '24 09:08 carlrobertoh