chore: rename toggle-view to toggle-pane for better semantics

This commit is contained in:
sxyazi
2025-02-20 23:28:38 +08:00
parent fe32aa2965
commit 1a31de460c
8 changed files with 10 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ For specific installation commands and configuration instructions, check the ind
- [smart-enter.yazi](smart-enter.yazi) - `Open` files or `enter` directories all in one key!
- [full-border.yazi](full-border.yazi) - Add a full border to Yazi to make it look fancier.
- [toggle-view.yazi](toggle-view.yazi) - Toggle the show, hide, and maximize states for different views: parent, current, and preview.
- [toggle-pane.yazi](toggle-pane.yazi) - Toggle the show, hide, and maximize states for different views: parent, current, and preview.
- [jump-to-char.yazi](jump-to-char.yazi) - Vim-like `f<char>`, jump to the next file whose name starts with `<char>`.
- [git.yazi](git.yazi) - Show the status of Git file changes as linemode in the file list.
- [mount.yazi](mount.yazi) - A mount manager for Yazi, providing disk mount, unmount, and eject functionality.

View File

@@ -1,7 +1,7 @@
# hide-preview.yazi
> [!WARNING]
> This plugin has been deprecated. Please use the new [toggle-view.yazi](../toggle-view.yazi) instead.
> This plugin has been deprecated. Please use the new [toggle-pane.yazi](../toggle-pane.yazi) instead.
Switch the preview pane between hidden and shown.

View File

@@ -4,7 +4,7 @@
local function entry(st)
ya.notify {
title = "Deprecated plugin",
content = "The `hide-preview` plugin is deprecated, please use the new `toggle-view` plugin instead: https://github.com/yazi-rs/plugins/tree/main/toggle-view.yazi",
content = "The `hide-preview` plugin is deprecated, please use the new `toggle-pane` plugin instead: https://github.com/yazi-rs/plugins/tree/main/toggle-pane.yazi",
timeout = 10,
level = "warn",
}

View File

@@ -1,7 +1,7 @@
# max-preview.yazi
> [!WARNING]
> This plugin has been deprecated. Please use the new [toggle-view.yazi](../toggle-view.yazi) instead.
> This plugin has been deprecated. Please use the new [toggle-pane.yazi](../toggle-pane.yazi) instead.
Maximize or restore the preview pane.

View File

@@ -4,7 +4,7 @@
local function entry(st)
ya.notify {
title = "Deprecated plugin",
content = "The `max-preview` plugin is deprecated, please use the new `toggle-view` plugin instead: https://github.com/yazi-rs/plugins/tree/main/toggle-view.yazi",
content = "The `max-preview` plugin is deprecated, please use the new `toggle-pane` plugin instead: https://github.com/yazi-rs/plugins/tree/main/toggle-pane.yazi",
timeout = 10,
level = "warn",
}

View File

@@ -1,6 +1,6 @@
# toggle-view.yazi
# toggle-pane.yazi
Toggle the show, hide, and maximize states for different views: parent, current, and preview. It respects the user's [`ratio` settings](https://yazi-rs.github.io/docs/configuration/yazi#manager.ratio)!
Toggle the show, hide, and maximize states for different panes: parent, current, and preview. It respects the user's [`ratio` settings](https://yazi-rs.github.io/docs/configuration/yazi#manager.ratio)!
Assume the user's `ratio` is $$[A, B, C]$$, that is, $$\text{parent}=A, \text{current}=B, \text{preview}=C$$:
@@ -25,7 +25,7 @@ Hide/Show preview:
```toml
[[manager.prepend_keymap]]
on = "T"
run = "plugin toggle-view min-preview"
run = "plugin toggle-pane min-preview"
desc = "Show/Hide preview"
```
@@ -34,7 +34,7 @@ Maximize/Restore preview:
```toml
[[manager.prepend_keymap]]
on = "T"
run = "plugin toggle-view max-preview"
run = "plugin toggle-pane max-preview"
desc = "Maximize/Restore preview"
```
@@ -46,7 +46,7 @@ In addition to triggering the plugin with a keypress, you can also trigger it in
```lua
if os.getenv("NVIM") then
require("toggle-view"):entry("min-preview")
require("toggle-pane"):entry("min-preview")
end
```