lf icon indicating copy to clipboard operation
lf copied to clipboard

Icons of symbolic links to directories

Open Naheel-Azawy opened this issue 4 years ago • 2 comments

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 avatar Jan 26 '21 20:01 Naheel-Azawy

@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.

gokcehan avatar Jan 26 '21 23:01 gokcehan

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.

Dimfred avatar Aug 13 '21 17:08 Dimfred