Lf: icons: file for folder

Created on 1 May 2020  ยท  10Comments  ยท  Source: gokcehan/lf

Hi.

I get file icon for folders.

lf v14
win10x64
macOS 10.15.4

image

image

question

Most helpful comment

image

All 10 comments

can you post your LF_ICON variable?

win10
di=๏“:fi=๏Ž:ln=๏’:or=๏’:ex=๏ง:*.c=๎˜ž:*.cc=๎˜:*.clj=๎จ:*.coffee=๎‘:*.cpp=๎˜:*.css=๎˜”:*.d=๎žฏ:*.dart=๎ž˜:*.erl=๎žฑ:*.exs=๎˜ญ:*.fs=๎žง:*.go=๎˜ง:*.h=๎˜ž:*.hh=๎˜:*.hpp=๎˜:*.hs=๎ท:*.html=๎˜Ž:*.java=๎œธ:*.jl=๎˜ค:*.js=๎Ž:*.json=๎˜‹:*.lua=๎˜ :*.md=๎˜‰:*.php=๎˜ˆ:*.pl=๎ฉ:*.pro=๎žก:*.py=๎œผ:*.rb=๎œน:*.rs=๎žจ:*.scala=๎œท:*.ts=๎˜จ:*.vim=๎˜ซ:*.cmd=๏:*.ps1=๏:*.sh=๏:*.bash=๏:*.zsh=๏:*.fish=๏:*.tar=๏:*.tgz=๏:*.arc=๏:*.arj=๏:*.taz=๏:*.lha=๏:*.lz4=๏:*.lzh=๏:*.lzma=๏:*.tlz=๏:*.txz=๏:*.tzo=๏:*.t7z=๏:*.zip=๏:*.z=๏:*.dz=๏:*.gz=๏:*.lrz=๏:*.lz=๏:*.lzo=๏:*.xz=๏:*.zst=๏:*.tzst=๏:*.bz2=๏:*.bz=๏:*.tbz=๏:*.tbz2=๏:*.tz=๏:*.deb=๏:*.rpm=๏:*.jar=๏:*.war=๏:*.ear=๏:*.sar=๏:*.rar=๏:*.alz=๏:*.ace=๏:*.zoo=๏:*.cpio=๏:*.7z=๏:*.rz=๏:*.cab=๏:*.wim=๏:*.swm=๏:*.dwm=๏:*.esd=๏:*.jpg=๏:*.jpeg=๏:*.mjpg=๏:*.mjpeg=๏:*.gif=๏:*.bmp=๏:*.pbm=๏:*.pgm=๏:*.ppm=๏:*.tga=๏:*.xbm=๏:*.xpm=๏:*.tif=๏:*.tiff=๏:*.png=๏:*.svg=๏:*.svgz=๏:*.mng=๏:*.pcx=๏:*.mov=๏:*.mpg=๏:*.mpeg=๏:*.m2v=๏:*.mkv=๏:*.webm=๏:*.ogm=๏:*.mp4=๏:*.m4v=๏:*.mp4v=๏:*.vob=๏:*.qt=๏:*.nuv=๏:*.wmv=๏:*.asf=๏:*.rm=๏:*.rmvb=๏:*.flc=๏:*.avi=๏:*.fli=๏:*.flv=๏:*.gl=๏:*.dl=๏:*.xcf=๏:*.xwd=๏:*.yuv=๏:*.cgm=๏:*.emf=๏:*.ogv=๏:*.ogx=๏:*.aac=๏:*.au=๏:*.flac=๏:*.m4a=๏:*.mid=๏:*.midi=๏:*.mka=๏:*.mp3=๏:*.mpc=๏:*.ogg=๏:*.ra=๏:*.wav=๏:*.oga=๏:*.opus=๏:*.spx=๏:*.xspf=๏:*.pdf=๏‘:*.nix=๏Œ“:

macos
export LF_ICONS="\ di=๏“:\ fi=๏Ž:\ ln=๏’:\ or=๏’:\ ex=๏ง:\ *.c=๎˜ž:\ *.cc=๎˜:\ *.clj=๎จ:\ *.coffee=๎‘:\ *.cpp=๎˜:\ *.css=๎˜”:\ *.d=๎žฏ:\ *.dart=๎ž˜:\ *.erl=๎žฑ:\ *.exs=๎˜ญ:\ *.fs=๎žง:\ *.go=๎˜ง:\ *.h=๎˜ž:\ *.hh=๎˜:\ *.hpp=๎˜:\ *.hs=๎ท:\ *.html=๎˜Ž:\ *.java=๎œธ:\ *.jl=๎˜ค:\ *.js=๎Ž:\ *.json=๎˜‹:\ *.lua=๎˜ :\ *.md=๎˜‰:\ *.php=๎˜ˆ:\ *.pl=๎ฉ:\ *.pro=๎žก:\ *.py=๎œผ:\ *.rb=๎œน:\ *.rs=๎žจ:\ *.scala=๎œท:\ *.ts=๎˜จ:\ *.vim=๎˜ซ:\ *.cmd=๏:\ *.ps1=๏:\ *.sh=๏:\ *.bash=๏:\ *.zsh=๏:\ *.fish=๏:\ *.tar=๏:\ *.tgz=๏:\ *.arc=๏:\ *.arj=๏:\ *.taz=๏:\ *.lha=๏:\ *.lz4=๏:\ *.lzh=๏:\ *.lzma=๏:\ *.tlz=๏:\ *.txz=๏:\ *.tzo=๏:\ *.t7z=๏:\ *.zip=๏:\ *.z=๏:\ *.dz=๏:\ *.gz=๏:\ *.lrz=๏:\ *.lz=๏:\ *.lzo=๏:\ *.xz=๏:\ *.zst=๏:\ *.tzst=๏:\ *.bz2=๏:\ *.bz=๏:\ *.tbz=๏:\ *.tbz2=๏:\ *.tz=๏:\ *.deb=๏:\ *.rpm=๏:\ *.jar=๏:\ *.war=๏:\ *.ear=๏:\ *.sar=๏:\ *.rar=๏:\ *.alz=๏:\ *.ace=๏:\ *.zoo=๏:\ *.cpio=๏:\ *.7z=๏:\ *.rz=๏:\ *.cab=๏:\ *.wim=๏:\ *.swm=๏:\ *.dwm=๏:\ *.esd=๏:\ *.jpg=๏:\ *.jpeg=๏:\ *.mjpg=๏:\ *.mjpeg=๏:\ *.gif=๏:\ *.bmp=๏:\ *.pbm=๏:\ *.pgm=๏:\ *.ppm=๏:\ *.tga=๏:\ *.xbm=๏:\ *.xpm=๏:\ *.tif=๏:\ *.tiff=๏:\ *.png=๏:\ *.svg=๏:\ *.svgz=๏:\ *.mng=๏:\ *.pcx=๏:\ *.mov=๏:\ *.mpg=๏:\ *.mpeg=๏:\ *.m2v=๏:\ *.mkv=๏:\ *.webm=๏:\ *.ogm=๏:\ *.mp4=๏:\ *.m4v=๏:\ *.mp4v=๏:\ *.vob=๏:\ *.qt=๏:\ *.nuv=๏:\ *.wmv=๏:\ *.asf=๏:\ *.rm=๏:\ *.rmvb=๏:\ *.flc=๏:\ *.avi=๏:\ *.fli=๏:\ *.flv=๏:\ *.gl=๏:\ *.dl=๏:\ *.xcf=๏:\ *.xwd=๏:\ *.yuv=๏:\ *.cgm=๏:\ *.emf=๏:\ *.ogv=๏:\ *.ogx=๏:\ *.aac=๏:\ *.au=๏:\ *.flac=๏:\ *.m4a=๏:\ *.mid=๏:\ *.midi=๏:\ *.mka=๏:\ *.mp3=๏:\ *.mpc=๏:\ *.ogg=๏:\ *.ra=๏:\ *.wav=๏:\ *.oga=๏:\ *.opus=๏:\ *.spx=๏:\ *.xspf=๏:\ *.pdf=๏‘:\ *.nix=๏Œ“:\ "

add tw=๐Ÿค:\ and check do tmp icon change?
UPDATE : what's your font?

image
image
image

ok please do this step some where on your system (Home)

mkdir newFolder
chmod 777 newFolder

check icon again. is it change?
after that remove that folder (we don't like mess with permission)

image

Ok
it is a bug that i report on #265. you can read more detailed there.
#257 PR change the icon mechanism(maybe solve the problem for you).
@gokcehan is it possible to merge just icon part of #257 to solve this problem?
side note: i can't reproduce that on my system (Linux) . it control with tw=๐Ÿค on my machine

I've edited the wiki. The issues is solved by adding the dir icon for the following: tw, st, ow, dt.

but problem exist for files with execution permission?
for example

chmod +x image.jpg

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

doronbehar picture doronbehar  ยท  3Comments

davidarrieta picture davidarrieta  ยท  6Comments

aidam38 picture aidam38  ยท  9Comments

alexherbo2 picture alexherbo2  ยท  4Comments

juacq97 picture juacq97  ยท  6Comments