jarun / nnn

n³ The unorthodox terminal file manager
BSD 2-Clause "Simplified" License
18.51k stars 743 forks source link

Icons does not work when NNN is opened with -C option #1823

Closed MathevsBatista closed 4 months ago

MathevsBatista commented 4 months ago

Exact steps to reproduce the issue

  1. Install nerdfont Jetbrains Nerd Font Mono and config the terminal to use it.
  2. Install nnn with O_NERD=1 option.
  3. Open nnn without -C option to see icons working (proves that icons work with jetbrains nerd font mono). image
  4. Now open it with -C option, icons do not work. image
jarun commented 4 months ago

This works as designed. Icons are not shown in 8-color mode.

jarun commented 4 months ago

You should read the documentation first - https://github.com/jarun/nnn/wiki/Advanced-use-cases#file-icons

Note that your $TERM must support 256 colors for the icons to show.

MathevsBatista commented 4 months ago

Wait, I have a question, kitty does support 256 colors, this means that the theme should be 256 colors to make icons work? When I read that in the wiki I had thought that it was all ok!

N-R-K commented 4 months ago

kitty does support 256 colors

-C enables 8 color mode. And so that disables 256 color output along with emojies. I've updated the wiki to make it more clear.

MathevsBatista commented 4 months ago

Thanks!