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

@@ -1,5 +1,8 @@
# 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.
https://github.com/yazi-rs/plugins/assets/17523360/8976308e-ebfe-4e9e-babe-153eb1f87d61

View File

@@ -2,6 +2,13 @@
--- @sync entry
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
Tab.layout, st.old = st.old, nil
else