aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorجاد2022-04-01 02:35:47 +0000
committerGitHub2022-04-01 02:35:47 +0000
commita9635659f7d0dbbf2f11552842cf789ce1797914 (patch)
treedbcc8ed0d88432d6851a1c720f6792c8dfb7fc87 /helix-view/src
parent6bb229839149742682d943a90f728e334c3cc560 (diff)
Reintroduce win32yank as a clipboard provider on Linux for WSL2 + Windows 10 (#1912)
* feat(clipboard): reintroduce win32yank for wsl2 linux * refactor(clipboard): adjust win32yank position to not interrupt wayland/x11 Co-authored-by: jiqb <gthbji@ml1.net>
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/clipboard.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-view/src/clipboard.rs b/helix-view/src/clipboard.rs
index c213827e..5cc5cad8 100644
--- a/helix-view/src/clipboard.rs
+++ b/helix-view/src/clipboard.rs
@@ -104,6 +104,11 @@ pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
primary_paste => "xsel", "-o";
primary_copy => "xsel", "-i";
}
+ } else if exists("win32yank.exe") {
+ command_provider! {
+ paste => "win32yank.exe", "-o", "--lf";
+ copy => "win32yank.exe", "-i", "--crlf";
+ }
} else if exists("termux-clipboard-set") && exists("termux-clipboard-get") {
command_provider! {
paste => "termux-clipboard-get";