lsd icon indicating copy to clipboard operation
lsd copied to clipboard

seperator not rendering between unicode icon and executable filename

Open dimitrilw opened this issue 1 year ago • 3 comments

  • 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)

image

Expected behavior

Consistent use of " " separator between icons and file/directory name, in both short & long output.

Actual behavior

image image

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

dimitrilw avatar Oct 01 '23 18:10 dimitrilw

hi @dimitrilw, thanks for reporting the issue, did you modify the icon theme?

zwpaper avatar Oct 02 '23 08:10 zwpaper

sorry slow to respond -- busy week

No mod that I'm aware of. Just changes in the config file.

dimitrilw avatar Oct 06 '23 03:10 dimitrilw

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

zwpaper avatar Oct 07 '23 02:10 zwpaper