feat: add diff.yazi plugin

This commit is contained in:
sxyazi
2024-06-27 20:39:39 +08:00
parent c270ac2d47
commit c2ab2803e1
4 changed files with 81 additions and 5 deletions

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

@@ -0,0 +1,22 @@
# diff.yazi
Diff the selected file with the hovered file, create a living patch, and copy it to the clipboard.
## Installation
```sh
ya pack -a yazi-rs/plugins#diff
```
## Usage
Add this to your `~/.config/yazi/keymap.toml`:
```toml
[[manager.prepend_keymap]]
on = [ "<C-d>" ]
run = "plugin diff"
desc = "Diff the selected with the hovered file"
```
Make sure the <kbd>C</kbd> + <kbd>d</kbd> key is not used elsewhere.