vim-gitgutter icon indicating copy to clipboard operation
vim-gitgutter copied to clipboard

Undo part of hunk

Open ccjmne opened this issue 9 months ago • 4 comments

Thank you for this gem of a project!

Wouldn't it be nice to be able to undo only parts of a hunk, by visually selecting the lines we want? I could see it working precisely the way you have laid out for staging parts of an additions-only hunk.

Although, now that I say that, I'm growing increasingly suspicious of the possibility that you've already considered this but chosen not to go through with supporting this feature, possibly because it's a lot more complex to get right than I would naively think.

It looks like mini.diff can, however—I'll experiment a bit with that in the coming days. Let me know if there's anything I can do otherwise to support in any way.

Cheers!

ccjmne avatar Feb 07 '25 03:02 ccjmne