@@ -375,6 +375,8 @@ impl MappableCommand {
375375 later, "Move forward in history",
376376 commit_undo_checkpoint, "Commit changes to new checkpoint",
377377 yank, "Yank selection",
378+ yank_to_clipboard, "Yank selections to clipboard",
379+ yank_to_primary_clipboard, "Yank selections to primary clipboard",
378380 yank_joined, "Join and yank selections",
379381 yank_joined_to_clipboard, "Join and yank selections to clipboard",
380382 yank_main_selection_to_clipboard, "Yank main selection to clipboard",
@@ -3762,6 +3764,16 @@ fn yank(cx: &mut Context) {
37623764 exit_select_mode(cx);
37633765}
37643766
3767+fn yank_to_clipboard(cx: &mut Context) {
3768+ yank_impl(cx.editor, '*');
3769+ exit_select_mode(cx);
3770+}
3771+
3772+fn yank_to_primary_clipboard(cx: &mut Context) {
3773+ yank_impl(cx.editor, '+');
3774+ exit_select_mode(cx);
3775+}
3776+
37653777fn yank_impl(editor: &mut Editor, register: char) {
37663778 let (view, doc) = current!(editor);
37673779 let text = doc.text().slice(..);