News for hackers. Stuff that matters.
Re:Show HN: GitHub style split diffs in your terminal by kbd on Saturday May 01, 2021 @05:07PM (#27009823)
I already use delta for this: https://github.com/dandavison/delta

I thought delta was fairly well-known by now so I was surprised to see this project not mention it (the readme already has a section for that). I wonder what they've chosen to do differently, besides write it in Node.js.

Re:Show HN: GitHub style split diffs in your terminal by milkbikis on Saturday May 01, 2021 @05:15PM (#27009896)
Yeah I (un)fortunately learned about delta too late or I probably wouldn't have made this. The main difference is that delta's default styles and appearance did not appeal to me. I'm sure it can be customized, but I wanted something that looked great by default. I especially like that the syntax highlighting matches vscode's since that's the editor I use for work.
Re:Show HN: GitHub style split diffs in your terminal by Noumenon72 on Sunday May 02, 2021 @12:15AM (#27012305)
I agree that's important! Delta's screenshot colors are so ugly that yours looks like the far superior product. It also seems more focused on diffs. I feel like I could drop in your project instantly, while delta seems to expect configuration.
Re:Show HN: GitHub style split diffs in your terminal by kbd on Saturday May 01, 2021 @05:30PM (#27010031)
> syntax highlighting matches vscode

An that's cool. I've always had a dream of having the same syntax highlighting set up everywhere: vscode, bat, vim, git diff... etc.

Re:Show HN: GitHub style split diffs in your terminal by d76d6776yudsy on Saturday May 01, 2021 @08:42PM (#27011314)
Re:Show HN: GitHub style split diffs in your terminal by r0rshrk on Monday May 03, 2021 @12:13PM (#27026908)
link is dead for me
Re:Show HN: GitHub style split diffs in your terminal by giantandroids on Sunday May 02, 2021 @02:29AM (#27012800)
I would much rather use this, a nice secluded statically compiled blob instead of letting node.js unspool a spaghetti of dependencies.
Re:Show HN: GitHub style split diffs in your terminal by ComputerGuru on Saturday May 01, 2021 @06:38PM (#27010528)
It’s definitely nice that delta doesn’t have a run-time dependency on node.
Re:Show HN: GitHub style split diffs in your terminal by petepete on Saturday May 01, 2021 @05:49PM (#27010192)
I use Delta and enjoy it, but using it with Git is a bit frustrating.

I wish it was able to automatically switch from side-by-side to vertical diffs depending on my terminal widt, or at least override it with --side-by-side.

Re:Show HN: GitHub style split diffs in your terminal by milkbikis on Saturday May 01, 2021 @05:56PM (#27010251)
Yes this is the default behavior for git-split-diffs: https://github.com/banga/git-split-diffs#narrow-terminals
Re:Show HN: GitHub style split diffs in your terminal by kbd on Saturday May 01, 2021 @05:52PM (#27010224)
Yes! This is my number one thing as well. Let me dig up the tickets...

Edit: https://github.com/dandavison/delta/issues/493#issuecomment-...