From d4f9716fbc36bc20848b7be0b65551495fa52952 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Tue, 11 Jul 2023 11:15:38 -0500 Subject: Add yank_to_clipboard commands, bind to `y` by default The clipboard special registers are able to retain multiple selections and also join the value when copying it to the clipboard. So by default we should yank regularly to the '*' and '+' registers. That will have the same behavior for the clipboards but will allow pasting multiple selections if the clipboard doesn't change between yanks. --- helix-term/src/keymap/default.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-term/src/keymap') diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs index c84c616c..37983352 100644 --- a/helix-term/src/keymap/default.rs +++ b/helix-term/src/keymap/default.rs @@ -265,7 +265,7 @@ pub fn default() -> HashMap { "C-v" | "v" => vsplit_new, }, }, - "y" => yank_joined_to_clipboard, + "y" => yank_to_clipboard, "Y" => yank_main_selection_to_clipboard, "p" => paste_clipboard_after, "P" => paste_clipboard_before, -- cgit v1.2.3-70-g09d2