mirror of
https://github.com/jarun/nnn.git
synced 2024-11-30 14:51:28 +00:00
Updated Live Previews (markdown)
parent
0a3fb1df96
commit
79322a9bbf
|
@ -3,13 +3,13 @@
|
|||
|
||||
A live preview is a window that shows information about whatever file or directory `nnn` has highlighted. As the cursor moves, the live preview window will automatically update.
|
||||
|
||||
## A Simple Example
|
||||
## Configuration example
|
||||
|
||||
There are two aspects to creating a live preview:
|
||||
1. A preview command
|
||||
1. A setup command
|
||||
|
||||
### A Preview Command Example
|
||||
### Preview command example
|
||||
|
||||
```sh
|
||||
#!/usr/bin/env sh
|
||||
|
@ -61,7 +61,7 @@ done < "$NNN_FIFO"
|
|||
```
|
||||
|
||||
|
||||
### A Setup Command Example
|
||||
### Setup command example
|
||||
|
||||
To create your own setup command, you need the following steps:
|
||||
1. Create a `NNN_FIFO`
|
||||
|
|
Loading…
Reference in a new issue