lsd icon indicating copy to clipboard operation
lsd copied to clipboard

Show hard link number only if > 1

Open eugenesvk opened this issue 2 years ago • 4 comments

Given that this number is always at least 1, then 1 becomes just visual noise and makes it harder to spot duplicates

eugenesvk avatar Jan 15 '23 15:01 eugenesvk

We are mimicking gnu ls behavior here. The idea is to stick to it as much as we can.

meain avatar Jan 16 '23 03:01 meain

The project explicitly states that

This project is a rewrite of GNU ls with lots of added features

I don't get how "mimicking" can be an argument against adding a new feature???

eugenesvk avatar Jan 16 '23 06:01 eugenesvk

This along with https://github.com/Peltoche/lsd/issues/793, we should consider the usescases and can be added in under a flag(maybe under the same flag for both, something like hide-defaults). Also, besides just removing/hiding it, we can consider highlighting when there is more than one hardlink.

meain avatar Jan 16 '23 08:01 meain

Thank you for reopening, flag/option is fine (though I still think it's a bad default), the usecase is eliminating useless info in the output + tiny space savings (if there are no values > 1, you save 2 characters of width :))

Re. highlighting: 2 in some color is more visible than 1 in one color 2 in another color so if you'd like to add colors, that'd be best as an extra option

eugenesvk avatar Jan 16 '23 08:01 eugenesvk