You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/confirmationPending I followed your instructions but didn't see the problem you reported. Please check your keybindings in case you have Shift+Insert bound to something else as well as to Paste.
Worth saying I was testing on a different platform (Windows).
Every time something is selected, the selection clipboard is set to what is selected. So selecting something and pressing Shift+Insert means that first the selected text is placed in the selection clipboard and then the very same text is pasted on top, effectively causing no change.
So, in step 4. above, selecting 456 is what causes the selection clipboard to become 456.
There is a single setting at editor.selectionClipboard which removes support for this, but I believe this is working as expected given the descriptions I've gotten over the years from linux users.
In other words, I believe selection clipboard cannot be used to overwrite a selection with a previous selection. Do you have an example of an editor that behaves differently around selection clipboard?
I fixed my problem by remapping the current Shift+Insert to something else.
What I want to point out is that now Shift+Insert is pointless if you want to override the current selection with the previously copied text.
Maybe the When condition on the keyboard shortcut should include and text is not selected?
The default editor only uses the mouse selection clipboard when invoked by middle-mouse-button.
But the editor.selectionClipboard is perfect. I wasn't aware it's present on linux. Thank you.
Activity
gjsjohnmurray commentedon Jan 15, 2020
/confirmationPending I followed your instructions but didn't see the problem you reported. Please check your keybindings in case you have Shift+Insert bound to something else as well as to Paste.
Worth saying I was testing on a different platform (Windows).
gjsjohnmurray commentedon Jan 15, 2020
Hmm, maybe #36170 is significant. The associated PR seems to have landed in today's Insiders.
pdanpdan commentedon Jan 15, 2020
Yes, you are right, it's that PR. Just that the primary clipboard has always the current selection if you want to replace some existing text.
I'll re-map the key, but I would let this issue open because I think it is malfunctioning.
alexdima commentedon Jan 19, 2020
Popescu Dan (@pdanpdan)
I think this is just how selection clipboard works normally...
Every time something is selected, the selection clipboard is set to what is selected. So selecting something and pressing Shift+Insert means that first the selected text is placed in the selection clipboard and then the very same text is pasted on top, effectively causing no change.
So, in step 4. above, selecting 456 is what causes the selection clipboard to become 456.
There is a single setting at
editor.selectionClipboardwhich removes support for this, but I believe this is working as expected given the descriptions I've gotten over the years from linux users.In other words, I believe selection clipboard cannot be used to overwrite a selection with a previous selection. Do you have an example of an editor that behaves differently around selection clipboard?
pdanpdan commentedon Jan 20, 2020
I fixed my problem by remapping the current Shift+Insert to something else.
What I want to point out is that now Shift+Insert is pointless if you want to override the current selection with the previously copied text.
Maybe the
Whencondition on the keyboard shortcut should includeand text is not selected?alexdima commentedon Jan 20, 2020
Popescu Dan (@pdanpdan) How does the default text editor that ships with your linux distro behave in this case?
pdanpdan commentedon Jan 20, 2020
The default editor only uses the mouse selection clipboard when invoked by middle-mouse-button.
But the
editor.selectionClipboardis perfect. I wasn't aware it's present on linux. Thank you.