Skip to content

Commit 85db269

Browse files
Merge pull request #6 from peterfication/add-yazi-docs
Add Yazi docs
2 parents 8782604 + 5e192c2 commit 85db269

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
A CLI tool that can peek into `*.npy` files.
44

5-
## Example
5+
## Installation
6+
7+
```bash
8+
cargo install num-peek
9+
```
10+
11+
## Usage example
612

713
```bash
814
$ num-peek assets/demo.npy
@@ -18,10 +24,16 @@ Min value: 1
1824
Max value: 22
1925
```
2026

21-
## Installation
27+
### Yazi previewer
2228

23-
```bash
24-
cargo install num-peek
29+
`num-peek` can be used together with [`piper`](https://github.com/yazi-rs/plugins/tree/main/piper.yazi) as a [Yazi](https://yazi-rs.github.io/) previewer:
30+
31+
```toml
32+
# yazi.toml
33+
[plugin]
34+
prepend_previewers = [
35+
{ name = "*.npy", run = 'piper -- num-peek $1' },
36+
]
2537
```
2638

2739
## Development

0 commit comments

Comments
 (0)