Toggle the different views: parent, current and preview.
- Yazi v0.4 or later.
ya pack -a dawsers/toggle-viewAdd this to your ~/.config/yazi/keymap.toml:
[manager]
prepend_keymap = [
{ on = "<C-1>", run = "plugin toggle-view --args=parent", desc = "Toggle parent" },
{ on = "<C-2>", run = "plugin toggle-view --args=current", desc = "Toggle current" },
{ on = "<C-3>", run = "plugin toggle-view --args=preview", desc = "Toggle preview" },
]Now each key will toggle on/off one of the three panels: Ctrl+1 for
parent, Ctrl+2 for current and Ctrl+3 for preview.
You can set your own key bindings.