Live data from Hacker News

Show HN: GitHub style split diffs in your terminal

github.com

1–10 of 53 posts

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

#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.

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

#6
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.

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

#7
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.

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.

> 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

#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.

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

#10
post #2

I enjoy having good terminal ergonomics for Git. What works for me is tig for git diffs. Also very impressive is kitty-diff. If you use kitty as your OpenGL enabled terminal https://sw.kovidgoyal.net/kitty/kittens/diff.html

I forgot kitty has kitty-diff! I love kitty as my terminal.
Post reply on HN