Files
2025-12-30 07:58:34 +08:00
..
2025-03-08 14:18:32 +08:00
2025-12-30 07:58:34 +08:00
2025-05-28 23:06:18 +08:00

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

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

Usage

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

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

Press Ctrl + t to run the plugin, you should see a message in the log.

License

This plugin is MIT-licensed. For more information check the LICENSE file.