Live data from Hacker News

Show HN: GitHub style split diffs in your terminal

github.com

11–20 of 53 posts

Re: Show HN: GitHub style split diffs in your terminal

#11
post #9
post #5

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.

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.

Yes! This is my number one thing as well. Let me dig up the tickets...

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

Re: Show HN: GitHub style split diffs in your terminal

#13
post #9
post #5

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.

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.

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

#14
post #4

I just use `vimdiff`, but this looks better.

Same. I mean... vim, right there already for free, and the invocation is rather ridiculously simpler.

And vimdiff is even an editor not just a viewer.

Now if it was say, Meld in a terminal, that would be worth talking about and I installing some stack as a dependency.

Re: Show HN: GitHub style split diffs in your terminal

#16
post #5

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.

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

#20
post #18

This is cool! A bit slow to start up, probably due to starting up a node process each run, but looks great. Wondering if you have a theme that doesn't include a background color as I quite like my terminal's defaults.

The slowest operation is syntax highlighting: https://github.com/banga/git-split-diffs#performance. I have a PR out to improve that somewhat.

Good point about the themes, I'll add one. I'm hoping to make it easy to customize individual theme colors so you could unset the background colors, for example

Post reply on HN