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
[Bug]: The color setting new-in-index
is not working
#972
Comments
@hpwxf could you provide some insight into this matter, considering your involvement in implementing this feature? |
I've realized that in a Git repository, |
In your case, the file already exists (not new) and something happens to it: it sounds related to the statuses left column: about the state in the index The statuses we can handle are those coming from git (git2-rs) itself and in the theme, we merge in the same color those appearing on the index and the directory (e.g. lsd/src/meta/git_file_status.rs Line 27 in d2538a6
lsd/src/meta/git_file_status.rs Line 36 in d2538a6
It would be possible to unmerge those statuses that were merged, but it would add 4 new status colors to do so. |
Sorry for my late reply; I've been very busy lately. Thank you for your response. I understand that staging is already indicated by the git-status column. However, I was wondering if it would be possible to implement the same color coding as used by
Is there a practical use case for differentiating between, for example, Another question: I noticed that you've implemented a patch allowing users to define icons for the git-status column, presumably in the git-theme branch. Is there any update on when this might be merged? Also, is there an issue tracking the discussion around the git-theme? |
Version
version
lsd 1.0.0
What OS are you seeing the problem on?
macOS
installation
brew install lsd
term
wezterm
ls-colors
di=34:ln=37:so=33:pi=33:ex=31:bd=33:cd=33:su=35:sg=35:tw=35:ow=35:or=90:mi=90
What happened?
My
colors.yaml
looks like this:When I change a already commited file in a git repo, the color of the identifier in the git column changes to yellow (as expected). However when I add the change to the index with
git add <file>
, the color is still yellow.What expected?
I'd expect staged files to be colored with
new-in-index
The text was updated successfully, but these errors were encountered: