Skip to content

[Feature request] IDE Native Diffs #295

@dwreeves

Description

@dwreeves

Hi, love the project. We are using it for rich-click and it's vastly improved our test suite.

One thing Claude Code does in its more recent versions is it calls an IDE native view for diffs. Meaning if it detects that I'm using PyCharm, instead of showing diffs in the terminal, it pulls up a window in my editor and shows the diffs there. This not only gives a better visualization of what's changing, it also lets me make adjustments and partial acceptances.

I was thinking it may be useful for changing snapshots to call whatever API Claude Code is calling inside of inline snapshot, so changes use the IDE's native diff view.

Alternatively, or concurrently, the creator of Rich/Textualize has been working on a diff view for AI agents to call. Once this is done it, could be worth looking into adding this for inline_snapshot: https://x.com/willmcgugan/status/1966611338534531515 Diffs in inline_snapshot can be tricky when there are multiple tests per file that are changing because it is tricky to see which diffs corresponds to what test; I basically have to pull up the file and line up the line numbers to see which tests are changing. So a better and more full diff would be extremely helpful.

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