-
-
Notifications
You must be signed in to change notification settings - Fork 25
[Feature request] IDE Native Diffs #295
Description
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.