summaryrefslogtreecommitdiff
path: root/mac/.config/yazi/plugins.bak/sudo-demo.yazi/README.md
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-09-13 17:11:00 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-09-13 17:11:00 +0900
commit2e6d3671d0e01ff5751893075e7fc5c53b288f95 (patch)
tree2ddc56faa7befe47996fe9bdbe61795401d98987 /mac/.config/yazi/plugins.bak/sudo-demo.yazi/README.md
parentedc0ccf1622788bc1051ab08a54378c36ac785f1 (diff)
deleted yazi/flavors, deleted yazi/plugins, created flavors.bak/, created plugins.bak/
Diffstat (limited to 'mac/.config/yazi/plugins.bak/sudo-demo.yazi/README.md')
-rw-r--r--mac/.config/yazi/plugins.bak/sudo-demo.yazi/README.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/mac/.config/yazi/plugins.bak/sudo-demo.yazi/README.md b/mac/.config/yazi/plugins.bak/sudo-demo.yazi/README.md
new file mode 100644
index 0000000..8068691
--- /dev/null
+++ b/mac/.config/yazi/plugins.bak/sudo-demo.yazi/README.md
@@ -0,0 +1,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.