Skip to content
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

cannot modify columns colors #655

Closed
greweln opened this issue May 4, 2022 · 5 comments
Closed

cannot modify columns colors #655

greweln opened this issue May 4, 2022 · 5 comments
Labels
area/theme kind/question Asking how to use lsd or may not using correctly

Comments

@greweln
Copy link

greweln commented May 4, 2022

  • os: Fedora 35/36
  • lsd --version:0.20.1
  • echo $TERM: Alacritty
  • echo $LS_COLORS: :di=001:ex=0;32:

The colors of the columns won't change despite any changes on the default theme.
Any sugestions?

@meain
Copy link
Member

meain commented May 4, 2022

There is a possibility that you might have some issues in your config. Could you post your configs here.

@greweln
Copy link
Author

greweln commented May 5, 2022

config.yaml

# == Classic ==
# This is a shorthand to override some of the options to be backwards compatible
# with `ls`. It affects the "color"->"when", "sorting"->"dir-grouping", "date"
# and "icons"->"when" options.
# Possible values: false, true
classic: false

# == Blocks ==
# This specifies the columns and their order when using the long and the tree
# layout.
# Possible values: permission, user, group, size, size_value, date, name, inode
blocks:
  - permission
  - user
  - group
  - size
  - date
  - name

# == Color ==
# This has various color options. (Will be expanded in the future.)
color:
  # When to colorize the output.
  # When "classic" is set, this is set to "never".
  # Possible values: never, auto, always
  when: auto
  # How to colorize the output.
  # When "classic" is set, this is set to "no-color".
  # Possible values: default, <theme-file-name>
  # when specifying <theme-file-name>, lsd will look up theme file
  # XDG Base Directory if relative, e.g. ~/.config/lsd/themes/<theme-file-name>.yaml,
  # The file path if absolute
  theme: default

# == Date ==
# This specifies the date format for the date column. The freeform format
# accepts an strftime like string.
# When "classic" is set, this is set to "date".
# Possible values: date, relative, '+<date_format>'
# `date_format` will be a `strftime` formatted value. e.g. `date: '+%d %b %y %X'` will give you a date like this: 17 Jun 21 20:14:55
date: date

# == Dereference ==
# Whether to dereference symbolic links.
# Possible values: false, true
dereference: false

# == Display ==
# What items to display. Do not specify this for the default behavior.
# Possible values: all, almost-all, directory-only
# display: all

# == Icons ==
icons:
  # When to use icons.
  # When "classic" is set, this is set to "never".
  # Possible values: always, auto, never
  when: auto
  # Which icon theme to use.
  # Possible values: fancy, unicode
  theme: fancy
  # Separator between icon and the name
  # Default to 1 space
  separator: " "

# == Ignore Globs ==
# A list of globs to ignore when listing.
# ignore-globs:
#   - .git

# == Indicators ==
# Whether to add indicator characters to certain listed files.
# Possible values: false, true
indicators: false

# == Layout ==
# Which layout to use. "oneline" might be a bit confusing here and should be
# called "one-per-line". It might be changed in the future.
# Possible values: grid, tree, oneline
layout: grid

# == Recursion ==
recursion:
  # Whether to enable recursion.
  # Possible values: false, true
  enabled: false
  # How deep the recursion should go. This has to be a positive integer. Leave
  # it unspecified for (virtually) infinite.
  # depth: 3

# == Size ==
# Specifies the format of the size column.
# Possible values: default, short, bytes
size: default

# == Permission ==
# Specify the format of the permission column
# Possible value: rwx, octal
#permission: rwx

# == Sorting ==
sorting:
  # Specify what to sort by.
  # Possible values: extension, name, time, size, version
  column: name
  # Whether to reverse the sorting.
  # Possible values: false, true
  reverse: false
  # Whether to group directories together and where.
  # When "classic" is set, this is set to "none".
  # Possible values: first, last, none
  dir-grouping: none

# == No Symlink ==
# Whether to omit showing symlink targets
# Possible values: false, true
no-symlink: false

# == Total size ==
# Whether to display the total size of directories.
# Possible values: false, true
total-size: false

# == Hyperlink ==
# Whether to display the total size of directories.
# Possible values: always, auto, never
#hyperlink: never

# == Symlink arrow ==
# Specifies how the symlink arrow display, chars in both ascii and utf8
symlink-arrow: ⇒

/themes/default.yaml

user: dark_red
group: 42
permission:
  read: 40
  write: 42
  exec: dark_red
  exec-sticky: 5
  no-access: 245
  octal: 6
  acl: dark_cyan
  context: cyan
date:
  hour-old: 40
  day-old: 42
  older: 36
size:
  none: 245
  small: cyan
  medium: red
  large: yellow
inode:
  valid: 13
  invalid: 245
links:
  valid: 13
  invalid: 245
tree-edge: 245

@zwpaper
Copy link
Member

zwpaper commented May 5, 2022

we support themes on https://github.com/Peltoche/lsd/releases/tag/0.21.0, I noticed you are using 0.20.1, maybe try updating it.

@zwpaper zwpaper added kind/question Asking how to use lsd or may not using correctly area/theme labels May 5, 2022
@meain
Copy link
Member

meain commented May 5, 2022

In addition to what zwpaper said, don't use default as the theme file name. Switch it to some other name. default is kind of a reserved word which resets to the builtin theme, but I can see how that can be confusing.

@greweln
Copy link
Author

greweln commented May 5, 2022

  • I uninstall 0.20.1 (version on Fedora)
  • install 0.21.0 with cargo
  • rename default theme

All good now, thank you very much !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/theme kind/question Asking how to use lsd or may not using correctly
Projects
None yet
Development

No branches or pull requests

3 participants