zsh-vi-mode icon indicating copy to clipboard operation
zsh-vi-mode copied to clipboard

Support Windows WSL Clipboard

Open androidfans opened this issue 3 years ago • 3 comments

if we are using wsl we can echo "contents" | clip.exe to send content to send content to windows but i haven't found how to read content from windows buffer

some link may be help https://stackoverflow.com/questions/59984528/copy-the-contents-of-a-file-to-clipboard-from-wsl-to-windows https://github.com/microsoft/WSL/issues/4071

androidfans avatar Mar 03 '21 11:03 androidfans

Hi @androidfans

For the WSL, you can get the clipboard content by below command.

powershell.exe Get-Clipboard

And the system clipboard functionality is in progress, welcome to star this project for further updates in the future.

jeffreytse avatar Mar 03 '21 12:03 jeffreytse

cool , i will config it in my vimrc. really hope to use simple p to paste from windows using zvm

androidfans avatar Mar 03 '21 12:03 androidfans

@androidfans You can see this issue #19 and temporarily make the clipboard working well in WSL.

jeffreytse avatar Mar 03 '21 12:03 jeffreytse