-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Hi,
I've seen myself wanting to use lemonade
as a drop-in replacement for xclip, which would permit me to use the "copy to clipboard" functionality of some software (e.g. the neat lazygit
) without needing from these software to knowingly support lemonade copy
interaction.
in other words, when trying to Copy to clipboard from such software (lazygit
), it tries to find either xsel
, xclip
or wl-copy
in my $PATH
, which it cannot succeed to do.
that is, unless I use this small script that I put in /usr/bin/xclip
:
#!/bin/bash
stdin="$([[ -p /dev/stdin ]] && cat -)"
lemonade copy $stdin
with that in place, I'm able to use the functionality!
this is not really an issue, rather a suggestion to maybe put this info in the docs?
also now that there is an issue for it, people looking for lemonade xclip replacement might find this answer more easily :)