docs: sync the doc with nightly changes

Fixes #153
This commit is contained in:
sxyazi
2025-10-22 19:37:03 +08:00
parent 9a52857eac
commit 8f1d9711bc

View File

@@ -17,7 +17,7 @@ It accepts a string parameter, which is the shell command to be executed, for ex
```toml
# ~/.config/yazi/yazi.toml
[[plugin.prepend_previewers]]
name = "*"
url = "*"
run = 'piper -- echo "$1"'
```
@@ -39,7 +39,7 @@ Here are some configuration examples:
```toml
[[plugin.prepend_previewers]]
name = "*.tar*"
url = "*.tar*"
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
[[plugin.prepend_previewers]]
name = "*.csv"
url = "*.csv"
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
[[plugin.prepend_previewers]]
name = "*.md"
url = "*.md"
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
[[plugin.prepend_previewers]]
name = "*/"
url = "*/"
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
[[plugin.append_previewers]]
name = "*"
url = "*"
run = 'piper -- hexyl --border=none --terminal-width=$w "$1"'
```