summaryrefslogtreecommitdiff
path: root/mac/.config/yazi/plugins.bak/diff.yazi/README.md
blob: 1976541e602c82eba80f158fab0ed88323ba8ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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 pkg add yazi-rs/plugins:diff
```

## Usage

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

```toml
[[mgr.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.