feat: chmod.yazi plugin

This commit is contained in:
sxyazi
2024-06-21 21:14:45 +08:00
parent 6d54340f48
commit a4ccf6fd18
3 changed files with 82 additions and 0 deletions

22
chmod.yazi/README.md Normal file
View File

@@ -0,0 +1,22 @@
# chmod.yazi
Execute `chmod` on the selected files to change their mode. This plugin is only available on Unix platforms since it relies on [`chmod(2)`](https://man7.org/linux/man-pages/man2/chmod.2.html).
## Installation
```sh
ya pack -a yazi-rs/plugins#chmod
```
## Usage
Add this to your `~/.config/yazi/keymap.toml`:
```toml
[[manager.prepend_keymap]]
on = [ "c", "m" ]
run = "plugin chmod"
desc = "Chmod on selected files"
```
Make sure the <kbd>c</kbd> => <kbd>m</kbd> key is not used elsewhere.