gokcehan / lf

Terminal file manager
MIT License
7.76k stars 331 forks source link

Disable executable file icon/color #992

Open drzhivago420 opened 2 years ago

drzhivago420 commented 2 years ago

I've tried moving around the priority and outright commenting the ex line in both the icons and colors files, with no luck. Is there any way for me to actually see any icon or color aside from green and rockets, that isn't "fixing my permissions"?

ilyagr commented 2 years ago

If I understand the question correctly, instead of commenting out the line, try changing it so that it has the same color/icon as the style for "normal" files.

drzhivago420 commented 2 years ago

I want stuff to be like b Currently it is like a Without changing permissions. executable

drzhivago420 commented 2 years ago

I understand why it works like that for colors (ls colors), but at least for file icons, I wish it ignored if it's executable or not. I'm tired of seeing that dumb rocket.

nhat-vo commented 1 year ago

Yes indeed I have the same problem. It seems that #506 was supposed to fix this issue by prioritizing pattern matching over file type. But in my case I still find that ex is preferred over *.py like below image

jpmvferreira commented 1 year ago

I have precisely the same issue. Why not take the simpler approach and have the order of the configuration file matter when it comes to applying a specific icon/color? This would allow different users to sort differently according to their taste, perhaps some actually like having their icon overwritten when the file is an executable. This way, this issue could be easily solved by placing the executable icon in the bottom of the file, acting as a fallback if no other match was triggered.

Tanish2002 commented 1 year ago

+1 for this feature. Though I don't want to straight disable executable icons. I want it to be used a fallback if no other icon is found for the file.

ted1277 commented 1 year ago

Any solution for this problem? I'm using lf in WSL, so all Windows files are "executable files". I've set EXEC 0 in .dircolors, so ls prints colored files according to the extensions of files. However, lf behaves differently, files have no colors in lf.

hakan-demirli commented 1 year ago

I delete this part and get rid of all executable icons: https://github.com/gokcehan/lf/blob/beedda2d6708259b03cc6921e0c1cdde231a2031/icons.go#L139-L141 A terrible workaround but considering I rarely interact with executable files over lf I haven't felt their absence.