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 other open buffer files to context. #685

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hesiod-au
Copy link

No description provided.

@JunYang-tes
Copy link

It's great, I think it would be even better if, like codecompanion.nvim, it allowed users to select which buffers to insert.

@dimroc
Copy link

dimroc commented Oct 31, 2024

I would love this. Although a separate keymap would be nice, say <space>+ab

@yetone
Copy link
Owner

yetone commented Nov 3, 2024

‌‌‌‌‌‌‌Can it be turned into a configurable item? And how about as a cmp mentions? For example: @buffers

@dimroc
Copy link

dimroc commented Nov 3, 2024

Btw, I assumed this <space>+ab would add all visible buffers in the current tab to the context. Adding ALL buffers could get sloppy as your open buffers list grows quite large over a long vim session.

@StevenMatchett
Copy link

This worked perfectly

@AndrewGerstenslager
Copy link

AndrewGerstenslager commented Nov 14, 2024

I pulled this branch into my config and keep getting the same error no matter what I ask:

- Date
time: 2024-11-14 11:07:42

- Model: claude/claude-3-5-sonnet-20240620

> can you provide the javascript so I can move it to a different file?

I apologize, but it seems there wasn't a specific request or question in your last message. 
Could you please provide a clear instruction or ask a specific question about what changes you'd like to make to the code?
 I'm here to help with any modifications or improvements you need for the HTML file or any other part of the project.

**Generation complete!** Please review the code suggestions above.

If theres something I did wrong let me know. All I did was change my Lazy source to "hesiod-au/avante.nvim" and reloaded and updated my Lazy config.

I agree with other suggestions that there should be a keybind or inline command to add buffers to context. Copilot chat in VsCode has the "#" symbol which you can then explicitly add a file to the context. Something as a command in the chat window or a keybind to list and choose buffers would be a nice feature rather than all buffers.

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

Successfully merging this pull request may close these issues.

6 participants