continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
19.71k stars 1.73k forks source link

context button for code snippet from previous chat response #2851

Open estiveljr opened 3 weeks ago

estiveljr commented 3 weeks ago

Validations

Problem

With the plugin shortcut Crtl+J is possible to reference code from files in the chat panel. However is not possible to reference code from the previous chat response.

Solution

One of the plugin's main points is reducing copy-paste. Therefore, a button to refer to code snippets from previous responses in the chat would be a great help. Also, implementing the Crtl+J shortcut in the chat pane would be awesome.

The images below show how this feature works in Cursor IDE. ask cursor

sestinj commented 2 weeks ago

@estiveljr

Also, implementing the Crtl+J shortcut in the chat pane would be awesome.

^does this mean that nothing happens when you are inside of the chat panel and you press Ctrl+J? I think we may have resolved this bug in the last release

What sorts of questions are you usually asking when you quote a code block? The model can already see the entirety of the chat history, so I'm wondering if this is always necessary. Might be, just not a workflow I'm familiar with