-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Feature]: configure whitespace error highlighting #45
Comments
My guess is git doesn't render the highlighting because it doesn't detect a TTY due to the pipe... I suspect this can be fixed super easily by just passing Thanks for opening this issue! I will look into it Edit: when you referred to "running the git command" I interpreted this as using the : button to execute the command, but it just occurred to me that you might be referring to the underlying For the latter it is a reasonable solution to try just passing
|
ah, sorry, I was just talking about the main gex output. I noticed the way the diff is generated (here, for unstaged commits) is like: Line 450 in f71214d
so my comment was about running git like this seems to ignore the config I explicitly set. The TTY detection theory makes sense |
First checks the gex config, then if nothing is found it falls back on the git config. Close #45
Released in 0.6 🎉 |
Description
git diff
on the terminal highlights incorrect whitespace in the terminal. Example:But in gex (tested with 0.5.0 using
nix run nixpkgs#gex
), this whitespace error isn't shown:Additional Information
The git diff flag to use is
--ws-error-highlight
, and I think an appropriate value would benew
.wait, should this actually be a bug report?
It seems like running the git command doesn't read my user level git config either, for some reason, even when I set
diff.wsErrorHighlight = new
The text was updated successfully, but these errors were encountered: