lf icon indicating copy to clipboard operation
lf copied to clipboard

the directory icon is not displayed

Open mr-scrpt opened this issue 2 years ago • 6 comments

The icon for the directory is not displayed. Although I use nvim and telescope-fle-browser - and it displays icons correctly. Can you tell me what may be the reason? I use alacritty therimanal - tried two fonts family: JetBrainsMono Nerd Font and family: 'FiraCode Nerd Font' Here is the config with icons for the dictory di= lf: image telescope-file-browser: image

mr-scrpt avatar Dec 01 '22 12:12 mr-scrpt

I want to provide some feedback here.

I'm also using Nerd Fonts.

When I configured the icons file for the first time, they worked, but after a session restart they are showing that character ("weird g") instead of the one specified in the icons file.

A temporary fix for me was changing the icon character from  (U+F413) to  (U+F07B). But I would prefer to use the original one for theme consistency.

I suspect either the font or the font cache may be at fault here, because this was a recent font install and OP report was 10 days ago. Also, if you go to https://www.nerdfonts.com/cheat-sheet, press "Show All Icons" and search by the "weird g" character, the browser selects the correct one:  (U+F413).

Also, my browser is unable to render  (U+F07B), but for  (U+F413) it actually shows the "weird g".

fjfnaranjo avatar Dec 11 '22 12:12 fjfnaranjo

OTOH, @gokcehan, this is related to https://github.com/gokcehan/lf/issues/583 , but only from https://github.com/gokcehan/lf/issues/583#issuecomment-1197456036

The issue starts with a different problem, but from that point, users reports similar issues.

I'm also using st+tmux. What about you @mr-scrpt ?

I cannot exactly find the culprit but looks like many systems/layers are interacting here, from system locale to libXft to terminal multiplexers to font cache... This is not necessarily a lf problem. But I think we can try to build a reproducible case.

fjfnaranjo avatar Dec 11 '22 13:12 fjfnaranjo

Ok. I found the solution to my problem.

I was using an old pattern in the -f argument for st to select the font Hack. The pattern matched my old version of Hack but was not matching the new one (the one with the glyphs).

Now, everything works perfectly.

But I still don't know why selecting the "weird g" with tmux ( ^B [ ) was showing the correct character before this fix :S

fjfnaranjo avatar Dec 11 '22 14:12 fjfnaranjo

I still haven't solved this problem. I open the icons file in vim and I see all icons correctly, including the directory icon and the ahive icon, and the image icon. But in lf all these icons are not displayed although many of the default icons are displayed correctly

mr-scrpt avatar Jan 02 '23 14:01 mr-scrpt

I still haven't solved this problem. I open the icons file in vim and I see all icons correctly, including the directory icon and the ahive icon, and the image icon. But in lf all these icons are not displayed although many of the default icons are displayed correctly

I have the same problem, you can use the "" icon as an alternative, it is almost identical to the default one.

aabbccddeeffggj avatar Oct 02 '23 04:10 aabbccddeeffggj

currently having the exact same issue

pingarelho avatar Nov 14 '23 23:11 pingarelho