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

add alternative clipboard access methods in non-x11 environments #1520

Closed
unxed opened this issue Mar 2, 2023 · 4 comments
Closed

add alternative clipboard access methods in non-x11 environments #1520

unxed opened this issue Mar 2, 2023 · 4 comments

Comments

@unxed
Copy link
Contributor

unxed commented Mar 2, 2023

...if far2l extensions are not available.

WSL:

    cat | /mnt/c/Windows/System32/clip.exe
    /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe Get-Clipboard | sed 's/\r//'

Probably calling just by names should be enough:

    cat | clip
    powershell Get-Clipboard | sed 's/\r//'

Cygwin:

    cat > /dev/clipboard
    cat /dev/clipboard

MacOS:

    cat | pbcopy
    pbpaste

Wayland:

    cat | wl-copy
    wl-paste

Sources:
https://gist.github.com/RichardBronosky/56d8f614fab2bacdd8b048fb58d0c0c7#file-cb
https://stackoverflow.com/a/60849508/1020550

@unxed
Copy link
Contributor Author

unxed commented Mar 3, 2023

Сюда же: можно сделать опцию в настройках «use custom copy/paste command line tools», чтобы можно было вручную прописать те инстурменты, что есть и работают на твоей системе, если штатный доступ к буферу обмена почему-то не работает. Решило бы проблемы типа #1350 хотя бы временно.

@spvkgn
Copy link
Contributor

spvkgn commented Mar 13, 2023

Еще такое есть https://github.com/Slackadays/Clipboard

@unxed
Copy link
Contributor Author

unxed commented Oct 1, 2023

CScript-based solution for WSL (better when PowerShell):

magiblot/tvision@5188218

@unxed
Copy link
Contributor Author

unxed commented Mar 4, 2024

После #1658 (comment) можно закрывать.

@unxed unxed closed this as completed Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants