Diff the selected file with the hovered file, create a living patch, and copy it to the clipboard.
screenshot-000982.mp4
ya pack -a yazi-rs/plugins:diff
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.
This plugin is MIT-licensed. For more information check the LICENSE file.