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 @@
# hide-preview.yazi
Switch the preview pane between hidden and shown.
## Installation
```sh
ya pack -a yazi-rs/plugins#hide-preview
```
## Usage
Add this to your `~/.config/yazi/keymap.toml`:
```toml
[[manager.prepend_keymap]]
on = [ "T" ]
run = "plugin hide-preview"
desc = "Hide or show preview"
```
Make sure the <kbd>T</kbd> key is not used elsewhere.