Skip to content

Yazi plugin: toggle different view configurations with or without preview

License

Notifications You must be signed in to change notification settings

dawsers/toggle-view.yazi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

toggle-view.yazi

Toggle the different views: parent, current and preview.

Requirements

  • Yazi v0.4 or later.

Installation

ya pack -a dawsers/toggle-view

Usage

Add 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.

About

Yazi plugin: toggle different view configurations with or without preview

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages