Skip to content

Undo part of hunk #902

@ccjmne

Description

@ccjmne

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions