Files
plugins/diff.yazi
三咲雅 · Misaki Masa a6268cfd2f Update README.md
2024-06-27 20:40:27 +08:00
..
2024-06-27 20:39:39 +08:00
2024-06-27 20:39:39 +08:00
2024-06-27 20:40:27 +08:00

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

ya pack -a yazi-rs/plugins#diff

Usage

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

[[manager.prepend_keymap]]
on   = [ "<C-d>" ]
run  = "plugin diff"
desc = "Diff the selected with the hovered file"

Make sure the C + d key is not used elsewhere.