refactoring
This commit is contained in:
parent
74ae1150a3
commit
69400c1aa3
142 changed files with 11 additions and 70 deletions
32
modules/home/yazi/plugins/toggle-view.yazi/README.md
Normal file
32
modules/home/yazi/plugins/toggle-view.yazi/README.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# toggle-view.yazi
|
||||
|
||||
Toggle the different views: parent, current and preview.
|
||||
|
||||
## Requirements
|
||||
|
||||
- [Yazi](https://github.com/sxyazi/yazi/) v0.4 or later.
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
ya pack -a dawsers/toggle-view
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Add this to your `~/.config/yazi/keymap.toml`:
|
||||
|
||||
``` 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.
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue