From a9635659f7d0dbbf2f11552842cf789ce1797914 Mon Sep 17 00:00:00 2001 From: جاد Date: Thu, 31 Mar 2022 19:35:47 -0700 Subject: 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 --- helix-view/src/clipboard.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'helix-view') 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 { 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"; -- cgit v1.2.3-70-g09d2