diff --git a/README.md b/README.md index 1e27bae..66f532b 100644 --- a/README.md +++ b/README.md @@ -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`, jump to the next file whose name starts with ``. - [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. diff --git a/hide-preview.yazi/README.md b/hide-preview.yazi/README.md index 2c3b5d0..f6ecb7a 100644 --- a/hide-preview.yazi/README.md +++ b/hide-preview.yazi/README.md @@ -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. diff --git a/hide-preview.yazi/main.lua b/hide-preview.yazi/main.lua index 53a0834..7b9a2bd 100644 --- a/hide-preview.yazi/main.lua +++ b/hide-preview.yazi/main.lua @@ -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", } diff --git a/max-preview.yazi/README.md b/max-preview.yazi/README.md index 2a46efc..4de80df 100644 --- a/max-preview.yazi/README.md +++ b/max-preview.yazi/README.md @@ -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. diff --git a/max-preview.yazi/main.lua b/max-preview.yazi/main.lua index ba938a1..025ffe4 100644 --- a/max-preview.yazi/main.lua +++ b/max-preview.yazi/main.lua @@ -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", } diff --git a/toggle-view.yazi/LICENSE b/toggle-pane.yazi/LICENSE similarity index 100% rename from toggle-view.yazi/LICENSE rename to toggle-pane.yazi/LICENSE diff --git a/toggle-view.yazi/README.md b/toggle-pane.yazi/README.md similarity index 90% rename from toggle-view.yazi/README.md rename to toggle-pane.yazi/README.md index 0ebbaa6..ec04700 100644 --- a/toggle-view.yazi/README.md +++ b/toggle-pane.yazi/README.md @@ -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 ``` diff --git a/toggle-view.yazi/main.lua b/toggle-pane.yazi/main.lua similarity index 100% rename from toggle-view.yazi/main.lua rename to toggle-pane.yazi/main.lua