What's a good way to convert the output of something like this into an html page? We have non technical people looking at markdown PRs and commits in github and the diff viewer is terrible. It will highlight and entire paragraph because someone removed a trailing space. I use git-so-fancy locally which makes it much easier to see changes but I can't expect non-technical editors to move from their GitHub based workflo…
Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
61–70 of 98 posts
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#62Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#63Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#64Delta has been one of those set and forget things, it's been a while since I've seen 'bare' git grep/diff/blame output, I also use it all the time for normal diffs (outside of git repos), but TIL that it also works with ripgrep [0] As someone else already mentioned there is also bat[1], which was also set and forget, I aliased cat to bat and have a seperate alias vcat for 'vanilla cat' /usr/bin/cat [0] https://dandav…
You can use \cat to prevent alias expansion.
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#65What's a good way to convert the output of something like this into an html page? We have non technical people looking at markdown PRs and commits in github and the diff viewer is terrible. It will highlight and entire paragraph because someone removed a trailing space. I use git-so-fancy locally which makes it much easier to see changes but I can't expect non-technical editors to move from their GitHub based workflo…
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#66What's a good way to convert the output of something like this into an html page? We have non technical people looking at markdown PRs and commits in github and the diff viewer is terrible. It will highlight and entire paragraph because someone removed a trailing space. I use git-so-fancy locally which makes it much easier to see changes but I can't expect non-technical editors to move from their GitHub based workflo…
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#67Earlier quoted context omitted.
Difftastic and Delta work not only in bare terminals. Both are supported by Magit in Emacs, both are also supported by Lazygit.
What??? Do I have to set something in Magit for that to work? That would be one of the coolest news in weeks!
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#68Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#69Why? How does syntax coloring help in this context? I don't use syntax coloring at all in my editor, I don't think it adds any information or clues that help me understand the code. I think colored diff output (beyond red for deleted and green for added) just adds distractions.
If Delta doesn't work like you expected and you want a standard diff output temporarily, no problem, you can run Git with
git -c core.pager=less
Note also that if you redirect the Git output, Git is smart enough to not call the pager (in this case, Delta)
This is a case of personal taste. My only complaint about Delta is its name. Delta is already a concept in Git, and every time that I need to search about it is a pain... I search directly by "dandavision delta"
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#70Delta has been one of those set and forget things, it's been a while since I've seen 'bare' git grep/diff/blame output, I also use it all the time for normal diffs (outside of git repos), but TIL that it also works with ripgrep [0] As someone else already mentioned there is also bat[1], which was also set and forget, I aliased cat to bat and have a seperate alias vcat for 'vanilla cat' /usr/bin/cat [0] https://dandav…
You can use \cat to prevent alias expansion.