summaryrefslogtreecommitdiff
path: root/fedora/.config/yazi/plugins/sudo-demo.yazi/README.md
blob: 8068691b0f236cdc79306407d924cbcf7f132cb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# sudo-demo.yazi

Just an example showing how to use `sudo` in a Yazi plugin, and the plugin itself doesn't offer any features beyond logging a message.

## Installation

```sh
ya pkg add yazi-rs/plugins:sudo-demo
```

## Usage

Add this to your `~/.config/yazi/keymap.toml`:

```toml
[[mgr.prepend_keymap]]
on  = "<C-t>"
run = "plugin sudo-demo"
```

Press <kbd>Ctrl</kbd> + <kbd>t</kbd> to run the plugin, you should [see a message in the log](https://yazi-rs.github.io/docs/plugins/overview#logging).

## License

This plugin is MIT-licensed. For more information check the [LICENSE](LICENSE) file.