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 @@
# 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.
https://github.com/yazi-rs/plugins/assets/17523360/c4f0b5c4-ff9f-4be8-ba73-4d8e7902e383

View File

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