Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add entire file to context when no text is selected in submodule #81

Open
nang-dev opened this issue Oct 29, 2024 · 2 comments
Open

Add entire file to context when no text is selected in submodule #81

nang-dev opened this issue Oct 29, 2024 · 2 comments

Comments

@nang-dev
Copy link

nang-dev commented Oct 29, 2024

Original PR by @amovfx
Handles empty selection case
Calls addEntireFileToContext function
Improves user experience
Maintains existing functionality

*Edit by Pan:
Behaviour wanted

  • Clicking on a file should add the file tag to the chat. E.g., if I click on file pricing.tsx, then @pricing.tsx should appear in the chat prepended. Like below. And the context of that entire file would be prepended to the chat backend.
  • This, way it is non obstructive, and user also knows it is there directly.
  • When switching opened files, this current file tag would also change.
    image

Description ✏️

Added addEntireFileToContext to addHighlightedCodeToContext when nothing is selected.

@nang-dev nang-dev converted this from a draft issue Oct 29, 2024
@nang-dev nang-dev changed the title Add entire file to context when no text is selected Add entire file to context when no text is selected in submodule Oct 29, 2024
@charlwillia6
Copy link

charlwillia6 commented Nov 14, 2024

@nang-dev - This issue can be closed as we have implemented this. @PearIssueBot

@charlwillia6
Copy link

Also, I have a fix for some of the issues with ActiveFileIndicator: trypear/pearai-submodule#159

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants