mirror of
https://github.com/jarun/nnn.git
synced 2024-11-27 13:21:29 +00:00
Updated Advanced use cases (markdown)
parent
4e4d27cd2e
commit
d962d2fd01
|
@ -2,9 +2,11 @@
|
||||||
|
|
||||||
`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 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.
|
||||||
|
|
||||||
|
If your distro and terminal support it, you can also use Emojis.
|
||||||
|
|
||||||
Icons can be customized in [icons.h](https://github.com/jarun/nnn/blob/master/src/icons.h).
|
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 in both cases. Or you can grab one of the icon-enabled static binaries auto-generated at each release.
|
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.
|
||||||
|
|
||||||
|
@ -12,14 +14,19 @@ Note that your `$TERM` must support 256 colors for the icons to show.
|
||||||
|
|
||||||
- [Install](https://github.com/sebastiencs/icons-in-terminal#installation) icons-in-terminal
|
- [Install](https://github.com/sebastiencs/icons-in-terminal#installation) icons-in-terminal
|
||||||
- Clone the `nnn` repo
|
- Clone the `nnn` repo
|
||||||
- Compile `nnn` with `make O_ICONS=1` from the root
|
- Compile `nnn` with `make O_ICONS=1`
|
||||||
s
|
|
||||||
### To enable Nerdfont icons
|
### To enable Nerdfont icons
|
||||||
|
|
||||||
- [Download and install](https://www.nerdfonts.com/) a patched Nerdfont.
|
- [Download and install](https://www.nerdfonts.com/) a patched Nerdfont.
|
||||||
- Apply that font as your terminal emulator's font. This will vary from emulator to emulator, but usually involves editing a config file or changing a setting within a GUI menu system.
|
- Apply that font as your terminal emulator's font. This will vary from emulator to emulator, but usually involves editing a config file or changing a setting within a GUI menu system.
|
||||||
- Clone the `nnn` repo
|
- Clone the `nnn` repo
|
||||||
- Compile `nnn` with `make O_NERD=1` from the root
|
- Compile `nnn` with `make O_NERD=1`
|
||||||
|
|
||||||
|
### To enable Emojis
|
||||||
|
|
||||||
|
- Clone the `nnn` repo
|
||||||
|
- Compile `nnn` with `make O_EMOJI=1`
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue