Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
81–90 of 98 posts
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#82Earlier quoted context omitted.
Sure, but I use Araxis Merge as my basic diff tool as well.
If you use a GUI to view the output of git diff... then yea this probably isn't for you :P
Default git diff output is soooooooooo bad. This tool makes it closer to a good GUI tool. At which point why not just use one of the tools that is excellent and existed for decades?
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#83I’ve been using Araxis Merge for almost 20 years. This seems… not as good?
Does Araxis Merge work in the terminal on Linux?
Perhaps the answer is “git-delta attempts to provide a GUI like experience. If you can use a GUI you should. But if for some reason you can’t consider this as a less good alternative”.
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#84There was a good point made, that has stuck with me over the years. that our syntax highlighters are highlighting the wrong thing. They should not be coloring the grammar, we are good at picking out grammar, they should be highlighting the symbols. each different variable and function name should be getting it's own color. that is, the goal is to make it quicker to distinguish different symbols, not that they are a s…
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#85There was a good point made, that has stuck with me over the years. that our syntax highlighters are highlighting the wrong thing. They should not be coloring the grammar, we are good at picking out grammar, they should be highlighting the symbols. each different variable and function name should be getting it's own color. that is, the goal is to make it quicker to distinguish different symbols, not that they are a s…
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#86Earlier quoted context omitted.
If you use a GUI to view the output of git diff... then yea this probably isn't for you :P
You say that like it’s a bad thing? Default git diff output is soooooooooo bad. This tool makes it closer to a good GUI tool. At which point why not just use one of the tools that is excellent and existed for decades?
Most of the time, diffs are small, and the overhead/break in workflow, of starting a separate GUI program just for them, can be big.
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#87https://raw.githubusercontent.com/dandavison/delta/main/them...
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#88Delta 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.
(In bash at least. Not sure about newfangled shells!)
Re: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#89 function delta_sidebyside {
if [[ COLUMNS -ge 120 ]]; then
DELTA_FEATURES='side-by-side'
else
DELTA_FEATURES=''
fi
}
trap delta_sidebyside WINCHRe: Delta: A syntax-highlighting pager for Git, diff, grep, and blame output
#90Earlier 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!
For difftastic, there is difftastic package in MELPA, see also https://github.com/pkryger/difftastic.el for instructions.