feat: support zooming images with a default parameter

Closes https://github.com/sxyazi/yazi/issues/3000
This commit is contained in:
sxyazi
2025-07-19 11:43:48 +08:00
parent b8860253fc
commit 5d726c063d
2 changed files with 83 additions and 35 deletions

View File

@@ -37,6 +37,16 @@ run = "plugin zoom -1"
desc = "Zoom out hovered file"
```
## Advanced
If you want to apply a default zoom parameter to image previews, you can specify it while setting this plugin up as a custom previewer, for example:
```toml
[[plugin.prepend_previewers]]
mime = "image/{jpeg,png,webp}"
run = "zoom 5"
```
## TODO
- [ ] Support more file types (e.g., videos, PDFs), PRs welcome!