Sysmagine / SemanticDiff

Community support for SemanticDiff, the programming language aware diff for Visual Studio Code and GitHub.
https://semanticdiff.com
45 stars 0 forks source link

Improvements to collapsed unchanged regions #38

Closed gustavoferrara closed 1 year ago

gustavoferrara commented 1 year ago

Oftentimes i need to check all unchanged regions of my code and it becomes annoying having to click Show more 20 lines at a time. Having a solution similar to Vscode's new diff editor would be great, essentially having a little icon which lets you expand the whole region (and be able to collapse it altogether if it's been expanded as well). showall

It would be even better if somewhere along the top diff menu an option was added to outright toggle all unchanged regions topmenu

mmueller2012 commented 1 year ago

Thanks for the suggestion. I will look into it.

As a tip for the meantime: You can also expand by clicking on the scopes:

image

Depending on the structure of the file, this allows you to expand much larger regions than just 20 lines.

mmueller2012 commented 1 year ago

We just released SemanticDiff 0.8.6 which includes both of your suggestions.

You can expand all changes between two hunks by clicking this button:

image

And there is now a menu item to expand all hunks:

image

There is currently no way to collapse individual hunks again, but you can collapse all hunks using the "Collapse Context Lines" option from the menu.

gustavoferrara commented 1 year ago

That's great, thanks a lot!