Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

diff.yazi

Diff the selected file with the hovered file, create a living patch, and copy it to the clipboard.

screenshot-000982.mp4

Installation

ya pkg add yazi-rs/plugins:diff

Usage

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

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

Note that, the keybindings above are just examples, please tune them up as needed to ensure they don't conflict with your other actions/plugins.

License

This plugin is MIT-licensed. For more information check the LICENSE file.