CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

✨ Git Diff + Tree views

Open WardsParadox opened this issue 2 years ago • 7 comments

A diff view and tree view built in for git (and other version control systems) would be a great addition. One less plugin needed :)

Opening diff view from CLI would also be nice to have.

WardsParadox avatar Mar 18 '22 16:03 WardsParadox

For reference... 01-macOS-code-edit-source-control

austincondiff avatar Mar 18 '22 17:03 austincondiff

That looks pretty good. But lacks standard symbols (+, -) for diffs or highlighting specifics

WardsParadox avatar Mar 18 '22 18:03 WardsParadox

On line 16 it is highlighting specifics ("mockData"). This is just a mockup and is exactly how Xcode handles it so behavior should probably be default.

austincondiff avatar Mar 18 '22 18:03 austincondiff

I like the way Github shows diffs such that matching lines are always next to each others, rather than the way XCode does it, where lines are offset as shown on the screenshot in the earlier comment.

I think this makes it much easier to compare files in practice.

Screenshot 2022-03-20 at 18 33 19

viktorstrate avatar Mar 20 '22 17:03 viktorstrate

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 30 '22 16:05 stale[bot]

keep

jenslys avatar Jun 01 '22 13:06 jenslys

@austincondiff I would like to work on this issue if I can implement this in GitHub style.

sk409 avatar Oct 16 '22 12:10 sk409

Let’s default it to how Xcode handles this with a setting to offset the lines as mentioned. Does that work for everyone?

austincondiff avatar Oct 16 '22 16:10 austincondiff

@austincondiff I haven‘t figured out how to implement this but I‘d like to work on this issue. Please assign this issue to me.

sk409 avatar Nov 05 '22 12:11 sk409