docs!: deprecate max-preview and hide-preview in favor of toggle-view

This commit is contained in:
sxyazi
2025-02-20 23:23:14 +08:00
parent e5eb78a380
commit fe32aa2965
6 changed files with 22 additions and 3 deletions

View File

@@ -11,8 +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! - [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. - [full-border.yazi](full-border.yazi) - Add a full border to Yazi to make it look fancier.
- [max-preview.yazi](max-preview.yazi) - Maximize or restore the preview pane. - [toggle-view.yazi](toggle-view.yazi) - Toggle the show, hide, and maximize states for different views: parent, current, and preview.
- [hide-preview.yazi](hide-preview.yazi) - Switch the preview pane between hidden and shown.
- [jump-to-char.yazi](jump-to-char.yazi) - Vim-like `f<char>`, jump to the next file whose name starts with `<char>`. - [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. - [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. - [mount.yazi](mount.yazi) - A mount manager for Yazi, providing disk mount, unmount, and eject functionality.

View File

@@ -1,5 +1,8 @@
# hide-preview.yazi # hide-preview.yazi
> [!WARNING]
> This plugin has been deprecated. Please use the new [toggle-view.yazi](../toggle-view.yazi) instead.
Switch the preview pane between hidden and shown. Switch the preview pane between hidden and shown.
https://github.com/yazi-rs/plugins/assets/17523360/c4f0b5c4-ff9f-4be8-ba73-4d8e7902e383 https://github.com/yazi-rs/plugins/assets/17523360/c4f0b5c4-ff9f-4be8-ba73-4d8e7902e383

View File

@@ -2,6 +2,13 @@
--- @sync entry --- @sync entry
local function entry(st) 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",
timeout = 10,
level = "warn",
}
if st.old then if st.old then
Tab.layout, st.old = st.old, nil Tab.layout, st.old = st.old, nil
else else

View File

@@ -1,5 +1,8 @@
# max-preview.yazi # max-preview.yazi
> [!WARNING]
> This plugin has been deprecated. Please use the new [toggle-view.yazi](../toggle-view.yazi) instead.
Maximize or restore the preview pane. Maximize or restore the preview pane.
https://github.com/yazi-rs/plugins/assets/17523360/8976308e-ebfe-4e9e-babe-153eb1f87d61 https://github.com/yazi-rs/plugins/assets/17523360/8976308e-ebfe-4e9e-babe-153eb1f87d61

View File

@@ -2,6 +2,13 @@
--- @sync entry --- @sync entry
local function entry(st) 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",
timeout = 10,
level = "warn",
}
if st.old then if st.old then
Tab.layout, st.old = st.old, nil Tab.layout, st.old = st.old, nil
else else

View File

@@ -1,6 +1,6 @@
# toggle-view.yazi # toggle-view.yazi
Based on the user's [`ratio` configuration](https://yazi-rs.github.io/docs/configuration/yazi#manager.ratio), toggles the minimum and maximum width for each column view. 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)!
Assume the user's `ratio` is $$[A, B, C]$$, that is, $$\text{parent}=A, \text{current}=B, \text{preview}=C$$: Assume the user's `ratio` is $$[A, B, C]$$, that is, $$\text{parent}=A, \text{current}=B, \text{preview}=C$$: