chore: rename toggle-view to toggle-pane for better semantics
This commit is contained in:
@@ -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!
|
- [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.
|
||||||
- [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>`.
|
- [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.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# hide-preview.yazi
|
# hide-preview.yazi
|
||||||
|
|
||||||
> [!WARNING]
|
> [!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.
|
Switch the preview pane between hidden and shown.
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
local function entry(st)
|
local function entry(st)
|
||||||
ya.notify {
|
ya.notify {
|
||||||
title = "Deprecated plugin",
|
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,
|
timeout = 10,
|
||||||
level = "warn",
|
level = "warn",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# max-preview.yazi
|
# max-preview.yazi
|
||||||
|
|
||||||
> [!WARNING]
|
> [!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.
|
Maximize or restore the preview pane.
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
local function entry(st)
|
local function entry(st)
|
||||||
ya.notify {
|
ya.notify {
|
||||||
title = "Deprecated plugin",
|
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,
|
timeout = 10,
|
||||||
level = "warn",
|
level = "warn",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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$$:
|
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
|
```toml
|
||||||
[[manager.prepend_keymap]]
|
[[manager.prepend_keymap]]
|
||||||
on = "T"
|
on = "T"
|
||||||
run = "plugin toggle-view min-preview"
|
run = "plugin toggle-pane min-preview"
|
||||||
desc = "Show/Hide preview"
|
desc = "Show/Hide preview"
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ Maximize/Restore preview:
|
|||||||
```toml
|
```toml
|
||||||
[[manager.prepend_keymap]]
|
[[manager.prepend_keymap]]
|
||||||
on = "T"
|
on = "T"
|
||||||
run = "plugin toggle-view max-preview"
|
run = "plugin toggle-pane max-preview"
|
||||||
desc = "Maximize/Restore 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
|
```lua
|
||||||
if os.getenv("NVIM") then
|
if os.getenv("NVIM") then
|
||||||
require("toggle-view"):entry("min-preview")
|
require("toggle-pane"):entry("min-preview")
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
Reference in New Issue
Block a user