Open codr1 opened 2 months ago
In this case I requested that Cluaude generate one line comments for functions. I had two buffers open - my code above and Claude.vim below. After Cluade.ai generated the answer, this is what my screen turned into. The two buffers on top are essentially exactly the same. The No Name buffer is identical to my code. And then on the bottom - there are a bunch of floded snippets.
Is there a button or a shortcut to turn a snippet into a diff that I can then
In this example - it worked pretty well, except for the last fold. You can see that the No Name buffer on the right shows that the Main function should be gone, while the actual text that came back from Claude (on the botton) is showing the actual code that should be placed in.
I have had the same experience.
[c
and ]c
doesn't do anything. There is only the last patch in diff mode.
Perhaps a key-combo to "apply" the code snippet under the current fold in the chat window could be a good idea?
I really like interacting with the plugin, but one thing that I am not sure how to do yet is dealing with multiple code snippets in the returned code.
For example, let's say I get this:
Modify the
download_and_extract_repo
function to reflect these changes.Let's start with updating the
safe_extract
function:Now, let's update the
download_and_extract_repo
function:I only get a diff with the second snippet. Is there a button or something I can press to generate a diff with the first one as well?