@@ -17,7 +17,7 @@ It accepts a string parameter, which is the shell command to be executed, for ex
|
|||||||
```toml
|
```toml
|
||||||
# ~/.config/yazi/yazi.toml
|
# ~/.config/yazi/yazi.toml
|
||||||
[[plugin.prepend_previewers]]
|
[[plugin.prepend_previewers]]
|
||||||
name = "*"
|
url = "*"
|
||||||
run = 'piper -- echo "$1"'
|
run = 'piper -- echo "$1"'
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ Here are some configuration examples:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[plugin.prepend_previewers]]
|
[[plugin.prepend_previewers]]
|
||||||
name = "*.tar*"
|
url = "*.tar*"
|
||||||
run = 'piper --format=url -- tar tf "$1"'
|
run = 'piper --format=url -- tar tf "$1"'
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ In this example, `--format=url` tells `piper` to parse the `tar` output as file
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[plugin.prepend_previewers]]
|
[[plugin.prepend_previewers]]
|
||||||
name = "*.csv"
|
url = "*.csv"
|
||||||
run = 'piper -- bat -p --color=always "$1"'
|
run = 'piper -- bat -p --color=always "$1"'
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ Note that certain distributions might use a different name for `bat`, like Debia
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[plugin.prepend_previewers]]
|
[[plugin.prepend_previewers]]
|
||||||
name = "*.md"
|
url = "*.md"
|
||||||
run = 'piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"'
|
run = 'piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"'
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ Note that there's [a bug in Glow v2.0](https://github.com/charmbracelet/glow/iss
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[plugin.prepend_previewers]]
|
[[plugin.prepend_previewers]]
|
||||||
name = "*/"
|
url = "*/"
|
||||||
run = 'piper -- eza -TL=3 --color=always --icons=always --group-directories-first --no-quotes "$1"'
|
run = 'piper -- eza -TL=3 --color=always --icons=always --group-directories-first --no-quotes "$1"'
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ This example uses `hexyl` as a fallback previewer instead of `file`.
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[plugin.append_previewers]]
|
[[plugin.append_previewers]]
|
||||||
name = "*"
|
url = "*"
|
||||||
run = 'piper -- hexyl --border=none --terminal-width=$w "$1"'
|
run = 'piper -- hexyl --border=none --terminal-width=$w "$1"'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user