mirror of
https://github.com/jarun/nnn.git
synced 2025-03-01 12:38:06 +00:00
Updated Live Previews (markdown)
parent
0a3fb1df96
commit
79322a9bbf
1 changed files with 3 additions and 3 deletions
|
@ -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 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:
|
There are two aspects to creating a live preview:
|
||||||
1. A preview command
|
1. A preview command
|
||||||
1. A setup command
|
1. A setup command
|
||||||
|
|
||||||
### A Preview Command Example
|
### Preview command example
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
#!/usr/bin/env 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:
|
To create your own setup command, you need the following steps:
|
||||||
1. Create a `NNN_FIFO`
|
1. Create a `NNN_FIFO`
|
||||||
|
|
Loading…
Add table
Reference in a new issue