lsd-rs / lsd-rs/lsd

[Bug]: The color setting `new-in-index` is not working

Open
#972 4 comments 0 reactions 1 assignee View on GitHub

@zwpaper is already working on this.

Since Dec 26, 2023.

Dominant language
Rust
Stars
16.2k
Forks
510
PR merge metrics
No merged PRs in 30d

Description

### Version

- [X] latest

### 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:

```yaml
git-status:
new-in-index: dark_green
modified: dark_yellow
```

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 `, the color is still yellow.

### What expected?

I'd expect staged files to be colored with `new-in-index`

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.