mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
29 lines
612 B
Markdown
29 lines
612 B
Markdown
# diff.yazi
|
|
|
|
Diff the selected file with the hovered file, create a living patch, and copy it to the clipboard.
|
|
|
|
https://github.com/yazi-rs/plugins/assets/17523360/eff5e949-386a-44ea-82f9-4cb4a2c37aad
|
|
|
|
## 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.
|
|
|
|
## License
|
|
|
|
This plugin is MIT-licensed. For more information check the [LICENSE](LICENSE) file.
|