Add Option to Clear Text Selection After Copying in Editor #36891
lemorage
started this conversation in
Ideas From Vim
Replies: 2 comments 1 reply
-
|
Given that VSCode, JetBrains and XCode do not have this behavior, this is unlikely to be Zed's default behavior. Is this something that is optionally supported by those via preference. Could you edit your description above to make it more of a feature request and include references to the feature name / setting in other apps that implement this? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
As a Emacs user, I'm sure this feature is the default behavior for Emacs too. If the selection is still on after copy action, I wonder how could user know the text is already copied? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Add a configuration option to automatically clear the text selection in the editor after copying it to the clipboard, similar to the
keep_selection_on_copysetting available for the terminal.Description
Currently, when selecting text in the editor and copying it (e.g., via Cmd+C), the selection remains highlighted. This can feel confusing sometimes.
This is particularly common in Vim-emulation modes, such as VSCodeVim or IdeaVim, where yanking (copying) in visual mode typically exits the mode and clears the selection.
For reference:
Adding a setting like
"editor.keep_selection_on_copy": true(default) or"editor.clear_selection_on_copy": falsewould allow users to customize this.Happy to hear more discussions on this, thanks!
Beta Was this translation helpful? Give feedback.
All reactions