lsd
lsd copied to clipboard
seperator not rendering between unicode icon and executable filename
- os: MacOS Sonoma 14.0, current as of time of this post
- lsd --version: 1.0.0, installed 10 mins ago via Homebrew
- echo $TERM: xterm-256color
- echo $LS_COLORS: none -- empty return value (see pic, below)
Expected behavior
Consistent use of " "
separator between icons and file/directory name, in both short & long output.
Actual behavior
Relevant section from ~/.config/lsd/config.yaml
# == 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
# TODO: "fancy" appears to not work with my Mac; nerd font installed, so figure out why
theme: unicode
# Separator between icon and the name
# Default to 1 space
separator: " "
Note: only change made here is switch from theme: fancy
to theme: unicode
hi @dimitrilw, thanks for reporting the issue, did you modify the icon theme?
sorry slow to respond -- busy week
No mod that I'm aware of. Just changes in the config file.
Got it, can confirm that the unicode icon theme indeed has the problem.
it is because the executable type in unicode theme is one size and the others are two.
https://github.com/lsd-rs/lsd/blob/ae1a2cd964168dee240de1ba13dd85e08b9a26a4/src/theme/icon.rs#L101