feat: add hide-preview, max-preview plugins

This commit is contained in:
sxyazi
2024-06-16 16:58:25 +08:00
parent db660364e9
commit ff84ac3d42
8 changed files with 135 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
# max-preview.yazi
Maximize or restore the preview pane.
## Installation
```sh
ya pack -a yazi-rs/plugins#max-preview
```
## Usage
Add this to your `~/.config/yazi/keymap.toml`:
```toml
[[manager.prepend_keymap]]
on = [ "T" ]
run = "plugin max-preview"
desc = "Maximize or restore preview"
```
Make sure the <kbd>T</kbd> key is not used elsewhere.