Implicit Context for Current Buffer #1898
Replies: 3 comments
-
You could write an autocmd that updates the context on the chat buffer and/or even adds it as a reference. |
Beta Was this translation helpful? Give feedback.
-
I was also thinking, that's maybe a good idea. Was about to comment like that when I realized, we can already do that!! Just define a prompt, which has already the required tools inside and assign this prompt to whatever keymap to start CodeCompanion. This would at least solve my usecase. |
Beta Was this translation helpful? Give feedback.
-
The other point I should have made in my earlier post is that we use a standard Vim buffer in CodeCompanion. That gives users the niceties of working with a Vim like experience but also makes implementing UI elements that would be tied to features like implicit context, somewhat difficult. We could hide everything in There's a really fine balance between adding a feature such as this (which btw, I think is totally valid) and not detracting from the UI/UX. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great to have a command like CodeCompanionBufferChat which takes into account the current buffer as context - similar to vscode.
see: https://code.visualstudio.com/docs/copilot/chat/copilot-chat-context#_implicit-context
I find myself typing
#{buffer} @{insert_edit_into_file}
far too often. Is there any way to automate his to get more kind of vscode copilot chat experience.Beta Was this translation helpful? Give feedback.
All reactions