mirror of
https://github.com/jarun/nnn.git
synced 2025-02-18 15:24:29 +00:00
update icons section
parent
b17ea5cd52
commit
142e372988
|
@ -1,20 +1,22 @@
|
|||
## File icons
|
||||
|
||||
`nnn` supports mutliple ways to show icons. They are turned off by default and are not provided in the default distribution to avoid shipping third party resources. Currently we support [icons-in-terminal](https://github.com/sebastiencs/icons-in-terminal) for those wishing to use icons alongside a normal code font. Alternatively, you can utilize Nerdfont's patched fonts to add icons to the font itself. The later is more common for Vim users who need fonts for various powerline plugins. Regardless of the method, each method will produce similar experiences within nnn.
|
||||
`nnn` supports multiple ways to show icons. They are turned off by default and are not provided in the default distribution to avoid shipping third party resources. We support three different icon sets:
|
||||
|
||||
If your distro and terminal support it, you can also use Emojis.
|
||||
* Unicode Emojis
|
||||
* [Nerdfont](https://www.nerdfonts.com/) Icons
|
||||
* [Icons-in-terminal](https://github.com/sebastiencs/icons-in-terminal)
|
||||
|
||||
Icons can be customized in [icons.h](https://github.com/jarun/nnn/blob/master/src/icons.h).
|
||||
|
||||
You will need to recompile `nnn` rather than use the default release. Or you can grab one of the icon-enabled static binaries auto-generated at each release.
|
||||
|
||||
Note that your `$TERM` must support 256 colors for the icons to show.
|
||||
Note that your `$TERM` must support 256 colors for the icons to show. The 8-color option `-C` also disables icons.
|
||||
|
||||
### To enable icons-in-terminal icons
|
||||
### To enable Emojis
|
||||
|
||||
- [Install](https://github.com/sebastiencs/icons-in-terminal#installation) icons-in-terminal
|
||||
- Use a font and terminal that supports unicode emojies.
|
||||
- Clone the `nnn` repo
|
||||
- Compile `nnn` with `make O_ICONS=1`
|
||||
- Compile `nnn` with `make O_EMOJI=1`
|
||||
|
||||
### To enable Nerdfont icons
|
||||
|
||||
|
@ -23,10 +25,11 @@ Note that your `$TERM` must support 256 colors for the icons to show.
|
|||
- Clone the `nnn` repo
|
||||
- Compile `nnn` with `make O_NERD=1`
|
||||
|
||||
### To enable Emojis
|
||||
### To enable icons-in-terminal icons
|
||||
|
||||
- [Install](https://github.com/sebastiencs/icons-in-terminal#installation) icons-in-terminal
|
||||
- Clone the `nnn` repo
|
||||
- Compile `nnn` with `make O_EMOJI=1`
|
||||
- Compile `nnn` with `make O_ICONS=1`
|
||||
|
||||
Note:
|
||||
|
||||
|
|
Loading…
Reference in a new issue