Skip to content

Add other open buffer files to context. #685

Closed
hesiod-au wants to merge 2 commits intoyetone:mainfrom
hesiod-au:main
Closed

Add other open buffer files to context. #685
hesiod-au wants to merge 2 commits intoyetone:mainfrom
hesiod-au:main

Conversation

@hesiod-au
Copy link

No description provided.

@JunYang-tes
Copy link
Contributor

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.

@dimroc
Copy link

dimroc commented Dec 28, 2024

FWIW the two features have eliminated my need for this:

  1. adding an individual file with leader+a+c
  2. The upcoming ability to add files in the quickfix with a @mention. (I haven't gotten this to work yet) be92be6

Do others feel the same?

@yetone yetone closed this Feb 11, 2025
@yetone
Copy link
Owner

yetone commented Feb 11, 2025

‌‌‌‌‌‌I'll close this very old PR for now, and I'll implement it in another way.

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