Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copying to clipboard on WSL #2622

Closed
PhilipNelson5 opened this issue May 10, 2023 · 1 comment
Closed

Copying to clipboard on WSL #2622

PhilipNelson5 opened this issue May 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@PhilipNelson5
Copy link

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.

@PhilipNelson5 PhilipNelson5 added the enhancement New feature or request label May 10, 2023
@PhilipNelson5
Copy link
Author

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.

@PhilipNelson5 PhilipNelson5 closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant