solorice/config/yazi/plugins/max-preview.yazi/README.md
Kristofers Solo 5f54bb78ad Update 2025-02-24
Update 2025-02-03

Update 2025-02-04

Update 2025-02-09

Update 2025-02-14

Update 2025-02-15

Update 2025-02-22

Update 2025-02-24
2025-04-16 13:46:48 +03:00

1.3 KiB

max-preview.yazi

Warning

This plugin has been deprecated. Please use the new toggle-pane.yazi instead.

Maximize or restore the preview pane.

https://github.com/yazi-rs/plugins/assets/17523360/8976308e-ebfe-4e9e-babe-153eb1f87d61

Installation

ya pack -a yazi-rs/plugins:max-preview

Usage

Add this to your ~/.config/yazi/keymap.toml:

[[manager.prepend_keymap]]
on   = "T"
run  = "plugin max-preview"
desc = "Maximize or restore preview"

Make sure the T key is not used elsewhere.

Tips

This plugin only maximizes the "available preview area", without actually changing the content size.

This means that the appearance of your preview largely depends on the previewer you are using. However, most previewers tend to make the most of the available space, so this usually isn't an issue.

For image previews, you may want to tune up the max_width and max_height options in your yazi.toml:

[preview]
# Change them to your desired values
max_width  = 1000
max_height = 1000

License

This plugin is MIT-licensed. For more information check the LICENSE file.