-
Notifications
You must be signed in to change notification settings - Fork 890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Kitty] Ranger does not display devicons #2169
Comments
Hmm, I have no idea what the issue might be, tbh. @kovidgoyal, maybe you recognize this issue? |
From the screenshot, it seems clear ranger is producing things like ~W instead of unicode codepoints correspondining to the icons. Why is it doing so, I have no idea. |
@kovidgoyal, there's no difference in what the plugin does. So this change must be coming from the environment. Maybe kitty defaults to a different locale than other terminals or something? |
That's what I originally suggested to the OP, but he insists he has set |
My apologies, I missed the existing issue linked in the OP. @tbrodbeck, what are the values of |
Hey when I use @kovidgoyal As I described in the issue I already used |
It works fine. Probably your shell is overriding it, look in your shell |
I am not sure about that. I tried launching kitty with several shells (including the default one) and |
kitty --config NONE -o 'env=WORKS=yay' bash -c "env | grep WORKS; read" will show you The extra = after env is needed for use with -o, you dont need it in |
Oh yeah and now that I recall the value of LC_CTYPE=UTF-8 is ignored because of a bug in python, see kovidgoyal/kitty#1233 so if rander needs it for some reason, then set it explicitly in your shell rc scripts. |
Ah now things are clearer. :D |
@kovidgoyal, am I understanding that issue right, this is a problem because kitty removes that env var from the environment as a workaround? |
No, it only removes it if python adds it. It also removed it when the |
Runtime Environment
macOS 14.01
kitty 0.19.2
ranger 1.9.3
2.7.16 (default, Oct 30 2020, 02:15:49) [GCC Apple LLVM 12.0.0 (clang-1200.0.30.4) [+internal-os, ptrauth-isa=sign+stri
None.None
zsh 5.8 (x86_64-apple-darwin20.0)
Current Behavior
When using
kitty
the devicons (https://github.com/alexanderjeurissen/ranger_devicons) the icons are sometimes shown and sometimes not. Instead there are those characters:Expected Behavior
Display devicons to the left of files and directories.
Context
If I start
kitty
from another terminal (not kitty), the devicons are shown as expected.BTW, I have already discussed with the creator of
kitty
about that issue: kovidgoyal/kitty#3124Steps to reproduce
alexanderjeurissen/ranger_devicons
kitty
ranger
The text was updated successfully, but these errors were encountered: