-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected colors with default settings #324
Comments
Can you define what you consider "broken" in the image. It looks OK to me, but maybe you're expecting different colors? |
Broken as in the colors are the wrong color. It used to be red text with red highlight and green text with green highlight by default. When I added the colors into my gitconfig it did something similar to this but with more grey. Now I get some grey colors again but if I put the colors in my gitconfig I get even more grey :( |
Nothing should have changed with regards to the colors in the new version. Have you tried and older version of d-s-f to see if it is still an issue. It's more likely there was a terminal update, or a git update that changed the default colors. |
Yeah, I get more vte and termite updates than I do dsf updates, but I figure this is worth investigating here since the colors in the gitconfig don't work, either. |
You make any progress on this? |
Nope - whenever I follow the colors guide in the README I get even worse colors. I don't really have much of an idea where to start. |
I'd start by trying a different terminal. My guess it the terminal is mapping around those colors behind your back. Also can you run this script and post the output: https://github.com/scottchiefbaker/perl-git-prompt/blob/master/utils/term-colors.pl That should output all 256 colors of your terminal. If it looks wonky it could be because your terminal doesn't fully support 256 colors? |
mental note: Add |
My terminal supports 256 color and true color, but it looks to be something with the way my solarized config for termite works. I definitely have a few noticeable differences when I run that script: Looking at my termite config, I see this in the bottom:
It looks like these map to the 0-255 values in the image above. When I compare #073642 from color0 to the screenshot above, that looks like a pretty similar color. It looks like I'm able to specify a numerical value for the color (I was guessing I could do this since I saw "red bold 52") so I'll just look at my personal output of that script and use the colors that work for my solarized setup. Thank you so much for the help! That perl script was super helpful! |
Just FYI, I edited the title for 2 reasons: 1) it ended up being inaccurate, 2) hopefully if other people run into a similar issue as me they can use this thread as a troubleshooting guide. |
Actually, one more question: is there a way for me to map color values within d-s-f but not in the gitconfig? I like d-s-f so much that I wrote this shell function:
The output in |
@FatBoyXPC glad you were able to solve your problem. No there is no way to specify colors raw in d-s-f, all the colors are read from |
I'm kind of surprised it doesn't "just work" since my git config values are still accessible. When I run
Any ideas why my Also, notice the "renamed:" being gred/green bit. I can get over that, though, I just thought it was strange. |
d-s-f support for vanilla diffs is still a work in progress. #220 is the beginning of addressing that. If you're still having issues I suggest opening another issue. |
Oh, sick! I'll try the |
I'm not sure if it's something on my system that changed or if it's this package, but I updated a couple weeks ago and haven't been able to get the good colors back.
I'm on Arch and have version 1.2.5-1 of diff-so-fancy.
It's important to note that when I first set this up with my gitconfig that I didn't add the diff highlight colors and such because it broke them in a similar way to how it is now. The diff highlight settings in my gitconfig still break it in that way (I get more greys with that than I do without the color settings).
Here are my term related env vars:
➜ dotfiles git:(master) ✗ env | ag term COLORTERM=truecolor TERM=xterm-256color ➜ dotfiles git:(master) ✗
I use termite terminal with a solarized theme.
Here's a screenshot of what I see:
The text was updated successfully, but these errors were encountered: