Make it easier to view change in diff, then accept it or not. #154
Replies: 5 comments 12 replies
-
I just noticed the However, I still believe that having the diff in a single buffer is much easier, though I understand this might be a personal preference. I also recognize the value of relying on Neovim's internal diff mode. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response.
This is great news.
This would be very useful indeed, I played a little with Zed's
I've tested it, but for some reason, I always find myself reverting back to chat copy-and-paste since I use refactor only most of the time.
I'll play with it a bit to see if I can set something up and get it working. Thank you again. |
Beta Was this translation helpful? Give feedback.
-
Hey @olimorris, I’ve created a module that utilizes I can submit a PR to integrate this into Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi, is it possible to apply individual hunks using I'm using the following configuration:
After performing a refactor, it generates a diff buffer, but when I try to apply a specific hunk using
It seems that I can only apply all hunks at once using Please let me know if I am doing something wrong, I am using the mini.diff plugin provided by LazyExtras. Also, I don't have a lot of experiences with diff plugins. I would appreciate your help, thanks in advance! |
Beta Was this translation helpful? Give feedback.
-
I would also appreciate the style of diff |
Beta Was this translation helpful? Give feedback.
-
Hello,
I’d like to suggest a feature similar to avante.nvim. In chat, it could display the lines that would be changed, and by pressing
A
with the cursor in the chat code block, it would add the changes to the buffer. From there, the diff would show both versions, allowing me to pressct
to choose the new version orco
to keep mine, and so on.To summarize, the typical process would be: press
A
, thenco
orct
, and that’s it.Why I’m suggesting this:
I’m fully aware of the inline options (and thank you for that as well), but asking the LLM to make changes after a chat can be a bit slow, to be honest. Pressing a single key like
A
is much more efficient. Additionally, it opens multiple buffers in diff mode, and when I want to revert changes, I have to pressu
several times, which is much slower than simply pressingco
. I know someone already suggested something similar for diff in #109, but this is a bit different.Thank you so much.
Beta Was this translation helpful? Give feedback.
All reactions