You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an icons.yaml file in $HOME/config/lsd/icons.yaml. The icons.theme key in $HOME/.config/lsd/config.yaml is set to "unicode", and icons.when is set to "auto". However, my specified file type icons in icons.yaml do not seem to override the defaults.
Note that the overridden directory, block device, char device, and file icons in icons.yaml are not used.
What expected?
I would have expected the overridden icons to be used, as described in the README here.
What else?
It seems like the documentation on setting a custom icon theme in the README may no longer describe lsd's actual behavior? Looking at lsd/src/theme.rs, it looks like the Theme struct now attempts to parse an icon theme, color theme, and Git symbols from the same file:
I'd be happy to open a PR to either update the documentation or fix the implementation so that it does what the documentation says! However, before doing that, it would be great to hear from the maintainers regarding what the intended behavior here is. Is the icon theme still supposed to be parsed from $XDG_CONFIG_HOME/lsd/icons.yaml as described in the README, or is the apparent behavior of parsing both the icons and color theme from the same YAML file correct? If the current behavior is intended, how is the new theme file supposed to be used --- where should it be located, and how do I point lsd at it?
The text was updated successfully, but these errors were encountered:
Version
version
What OS are you seeing the problem on?
Linux
installation
From Nixpkgs
term
ls-colors
What happened?
I have an
icons.yaml
file in$HOME/config/lsd/icons.yaml
. Theicons.theme
key in$HOME/.config/lsd/config.yaml
is set to "unicode", andicons.when
is set to "auto". However, my specified file type icons inicons.yaml
do not seem to override the defaults.For example:
Note that the overridden directory, block device, char device, and file icons in
icons.yaml
are not used.What expected?
I would have expected the overridden icons to be used, as described in the README here.
What else?
It seems like the documentation on setting a custom icon theme in the README may no longer describe
lsd
's actual behavior? Looking atlsd/src/theme.rs
, it looks like theTheme
struct now attempts to parse an icon theme, color theme, and Git symbols from the same file:lsd/src/theme.rs
Lines 18 to 26 in 9b310da
lsd/src/theme.rs
Lines 39 to 83 in 9b310da
I'd be happy to open a PR to either update the documentation or fix the implementation so that it does what the documentation says! However, before doing that, it would be great to hear from the maintainers regarding what the intended behavior here is. Is the icon theme still supposed to be parsed from
$XDG_CONFIG_HOME/lsd/icons.yaml
as described in the README, or is the apparent behavior of parsing both the icons and color theme from the same YAML file correct? If the current behavior is intended, how is the new theme file supposed to be used --- where should it be located, and how do I pointlsd
at it?The text was updated successfully, but these errors were encountered: