ai.vim icon indicating copy to clipboard operation
ai.vim copied to clipboard

FR: diff with hunkwise accept / reject like cursor.so

Open alextes opened this issue 2 years ago • 2 comments

It's a large feature request but playing with https://cursor.so it seems very powerful.

AI refactoring, but instead of just making the editing having to undo / redo to figure out if it is what you want, the editor shows you an interactive diff where you can "accept all", "accept only this chunk" and their reject equivalents.

What do you think?

alextes avatar Apr 03 '23 08:04 alextes

Sounds amazing to me! Is there any existing code that would facilitate this?

aduros avatar Apr 04 '23 18:04 aduros

I mean, an MVP would be to rely on gitplugins, for example gitsigns can show hunk previews. Similarly there are many plugins that when they see >>>>HEAD they offer conflict resolution actions. Not quite the same but pretty close. Mm, if I think of more I'll share them here.

alextes avatar Apr 04 '23 19:04 alextes