Skip to content

round out clipboard actions with add actions to delete/change selection to clipboard #11156

Discussion options

You must be logged in to vote

That should work:

[keys.normal]
c = ["yank_to_clipboard", "change_selection_noyank"]
d = ["yank_to_clipboard", "delete_selection_noyank"]

I think you might be mixing up what exit_select_mode does with the collapse_selection or keep_primary_selection commands. exit_select_mode just goes to normal mode if you're in select mode - it doesn't affect the selections:

fn exit_select_mode(cx: &mut Context) {
if cx.editor.mode == Mode::Select {
cx.editor.mode = Mode::Normal;
}
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@the-mikedavis
Comment options

Answer selected by KiaraGrouwstra
Comment options

You must be logged in to vote
1 reply
@the-mikedavis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
C-enhancement Category: Improvements
2 participants
Converted from issue

This discussion was converted from issue #11150 on July 13, 2024 13:04.