You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In WSL, when lazygit copies to the clipboard, utilities like xsel or xclip do not get the text into the windows clipboard.
Describe the solution you'd like
WSL can use clip.exe which can be piped into and the text will be put into the windows clipboard. Lazygit could also look for clip.exe when copying to the clipboard.
echo"foo"| clip.exe
ctrl+v
foo
Describe alternatives you've considered
Creating a bash script on your path called xsel with the contents clip.exe enables lazygit to copy to the windows keyboard. /usr/bin/xsel
clip.exe
It would be great if lazygit could check for clip.exe and use it when copying to the clipboard instead of needing this intermediate script.
The text was updated successfully, but these errors were encountered:
I started looking at the code and it looks like lazygit is using atotto/clipboard to interface with the clipboard. At one point it looks like there was an effort to implement using clip.exe but it seems abandoned... atotto/clipboard#45 atotto/clipboard#58
Regardless, this is not an issue to be resolved here.
Is your feature request related to a problem? Please describe.
In WSL, when lazygit copies to the clipboard, utilities like xsel or xclip do not get the text into the windows clipboard.
Describe the solution you'd like
WSL can use
clip.exe
which can be piped into and the text will be put into the windows clipboard. Lazygit could also look for clip.exe when copying to the clipboard.ctrl+v
Describe alternatives you've considered
Creating a bash script on your path called xsel with the contents
clip.exe
enables lazygit to copy to the windows keyboard./usr/bin/xsel
It would be great if lazygit could check for clip.exe and use it when copying to the clipboard instead of needing this intermediate script.
The text was updated successfully, but these errors were encountered: