Open TobisLee opened 2 days ago
Have you installed xclip / wl-clipboard / xsel? https://yazi-rs.github.io/docs/installation
Yeah, I have installed wl-clipboard
That's weird, I can't reproduce it, could you debug it a bit please, ex calling ya.clipboard()
in a plugin to see if it works along. This is the impl code of ya.clipboard()
:
I tested the ya.clipboard()
in my plugin with or without ya.notify()
function, but both work fine.
After I add the sleep function to the end of the diff plugin, I feel this bug appears more frequently. But it still not a 100% reproduce way.
ya.clipboard(output.stdout)
info("Diff copied to clipboard")
ya.sleep(0.5)
Still can't reproduce with the ya.sleep()
, I guess it may be a wl-copy
problem, did you try calling it from your terminal to see if it's working?
I tested with wl-copy
, it works fine. Can you be more specific?
I don't have a Wayland handy for testing.
If possible, it'd be best to debug it in Rust to see what's going on
Okay, I will debug it in weekend.
What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
foot 1.19.0
yazi --debug
outputDescribe the bug
The
diff
plugin sometimes doesn't copy the content to system clipboard but yazi shows the copy to clipboard message.I use
Ctrl+f
insteadCtrl+d
屏幕录像_20241030_011013.webmMinimal reproducer
diff
shortcut to copy contentAnything else?
No response