Feature request: Color override setting for file/directory indicator column
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 510
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
Currently the file/directory indicator column (the first character column with --long output) color is set to the color of the file type (which is picked up from LS_COLORS).
$ lsd --color=always
drwxr-xr-x agaia agaia 4.0 KB Fri Oct 29 09:27:51 2021 🗀 some_dir
.rw-r--r-- agaia agaia 1.9 KB Wed Oct 27 14:04:28 2021 🗀 some_file
^-----The colors of this first column 'd' and '.' match 'some_dir' and 'some_file's colors respectively
I would greatly appreciate a setting in the theme yaml to explicitly set the color of the file/directory indicator independent of the file type color.
I suggest an optional setting in the theme yaml. If this field is absent, fall back to the file type color from LS_COLORS.
# excerpt from theme.yaml
directory-indicator: 15
My personal goal is to mimic gnu ls where only the file name is colored while retaining lsd's file icons. I would do so by setting the file/directory indicator to white. I already color the permissions, size, etc to white.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how theme YAML settings are parsed and how the file/directory indicator is colored in --long output. Check the existing LS_COLORS fallback path and identify the relevant color-rendering tests, if present. Done means an optional directory-indicator theme setting overrides that column while absent settings retain the current file-type color.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, yaml
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100