lsd icon indicating copy to clipboard operation
lsd copied to clipboard

Feature request: Color override setting for file/directory indicator column

Open adam-gaia opened this issue 4 years ago • 2 comments

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.

adam-gaia avatar Nov 01 '21 20:11 adam-gaia

Would like to have this feature. I cannot change the directory color and I can barely read the names they are in a horrible blue color. Please make this happen!

bryanwills avatar Mar 15 '23 14:03 bryanwills

@bryanwills This issue is different. You can change the directory colors using LS_COLORS.

Reference: https://gist.github.com/thomd/7667642

meain avatar Mar 15 '23 14:03 meain