Replies: 4 comments 3 replies
-
Here's my
|
Beta Was this translation helpful? Give feedback.
-
Also, adding |
Beta Was this translation helpful? Give feedback.
-
Hi @garyo, delta uses the file name suffix to infer language, so Hm, I wonder why you're not getting the correct colors for
|
Beta Was this translation helpful? Give feedback.
-
In case you're interested in the generated ANSI escapes, here's a segment from the top of the working version (
and here is
|
Beta Was this translation helpful? Give feedback.
-
I'm on MacOS 14.4.1, arm64. I just installed delta via homebrew, version 0.17.0. Configured it into my .gitconfig as recommended. But when I do
git show HEAD
, instead of showing the diffs, it hides the diff markers.Here's an example (I pipe the output into
head -40
so you can see the raw input to delta):produces this output in my terminal:
![image](https://private-user-images.githubusercontent.com/139975/326826183-2a94fd4f-1b9f-4ecc-885f-55a8477f0133.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5MTEzNjgsIm5iZiI6MTcxODkxMTA2OCwicGF0aCI6Ii8xMzk5NzUvMzI2ODI2MTgzLTJhOTRmZDRmLTFiOWYtNGVjYy04ODVmLTU1YTg0NzdmMDEzMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyMFQxOTE3NDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYTRjNTdhZjcwNjRlNjcxZjRlN2M3YjExOGRkYjA0YzdjNTJiZTk3OWY0YzZiNDViYTAzYWI1MDEzNzNkY2UzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ORpkAyEMB4BkFLu1qaLt8pnJGQ-sG8YWnc_ZlWWiuDk)
I can see it's figured out that it's looking at a commit diff, and it's parsing it correctly (hence the hunk headers), but the diff view is all gray with no diff highlighting.
![image](https://private-user-images.githubusercontent.com/139975/326830546-e3e80d5e-1ec3-4822-ad9d-0ff9ee2de0cf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5MTEzNjgsIm5iZiI6MTcxODkxMTA2OCwicGF0aCI6Ii8xMzk5NzUvMzI2ODMwNTQ2LWUzZTgwZDVlLTFlYzMtNDgyMi1hZDlkLTBmZjllZTJkZTBjZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyMFQxOTE3NDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00YTFiY2I2NjdkNjljYzk0Mzg2YmM1ZjdiNTljMDI2NmU5MWE4MGYzODA2NTk3YzI3ZjQwMjVkYjlhMTMyYjk5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.T1cDfEPYXR4JKkL0txvxQSei5JiHNviPAvMjTQDvWQM)
Later on in the output, it also syntax-highlights the added code as if my theme were dark, even though I have
light = true
:In my
.gitconfig
I have this:and in my env, $PAGER is
less
:I did have delta installed a long time ago, but I don't think I have any remnants of the old config around...
I also tried just
cat
ing the input from a diff into delta, with the same results.Beta Was this translation helpful? Give feedback.
All reactions