@@ -375,6 +375,8 @@ impl MappableCommand {
375 later, "Move forward in history",
375 later, "Move forward in history",
376 commit_undo_checkpoint, "Commit changes to new checkpoint",
376 commit_undo_checkpoint, "Commit changes to new checkpoint",
377 yank, "Yank selection",
377 yank, "Yank selection",
378+ yank_to_clipboard, "Yank selections to clipboard",
379+ yank_to_primary_clipboard, "Yank selections to primary clipboard",
378 yank_joined, "Join and yank selections",
380 yank_joined, "Join and yank selections",
379 yank_joined_to_clipboard, "Join and yank selections to clipboard",
381 yank_joined_to_clipboard, "Join and yank selections to clipboard",
380 yank_main_selection_to_clipboard, "Yank main selection to clipboard",
382 yank_main_selection_to_clipboard, "Yank main selection to clipboard",
@@ -3762,6 +3764,16 @@ fn yank(cx: &mut Context) {
3762 exit_select_mode(cx);
3764 exit_select_mode(cx);
3767+fn yank_to_clipboard(cx: &mut Context) {
3768+ yank_impl(cx.editor, '*');
3769+ exit_select_mode(cx);
3772+fn yank_to_primary_clipboard(cx: &mut Context) {
3773+ yank_impl(cx.editor, '+');
3774+ exit_select_mode(cx);
3765fn yank_impl(editor: &mut Editor, register: char) {
3777fn yank_impl(editor: &mut Editor, register: char) {
3766 let (view, doc) = current!(editor);
3778 let (view, doc) = current!(editor);
3767 let text = doc.text().slice(..);
3779 let text = doc.text().slice(..);