lf
lf copied to clipboard
Icons of symbolic links to directories
I have just noticed that the icons of links to directories look like files (ln=🗎). I guess the source shows the reason in icons.go:
case f.linkState == working:
key = "ln"
Maybe it's possible to add something like ln-di? But some might complain about other icons too. Maybe better ignore checking if it's a link or not and just use the icon of the linked file? Not sure, what do you think?
@Naheel-Azawy I'm still trying to keep our color and icon configuration symmetric. And as you know color configuration is still somewhat compatible with ls colors. I think dircolors have an option for this in the form LINK target. Maybe we can implement something similar though I don't know if it is feasible in our code or not.
Maybe better ignore checking if it's a link or not and just use the icon of the linked file? Ranger does it also like this the link has the same icon as the underlying file.
That would be really great to have an ignore, like when ln is not present in LF_ICONS to then take the underlying filetype.