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
Every time a clipboard item is pasted the ring shuffles so that the last pasted item is first in the list and the previous last copied item goes at the end. This seems like a bug, as older entries become earlier in the list from the newer ones.
Also, not quite sure what the wording in the docs means:
Everytime a clipboard ring operation is invoked, the current clipboard content will be added to the clipboard ring. Use "clipring.backupClipboard" to disable this behavior.
The same behavior applys to the paste operation. When an item from the clipboard is pasted into the editor, the pasted content is also transfered to the clipboard. Use "clipring.itemToClipboardOnPaste" to disable this behavior.
Every time a clipboard item is pasted the ring shuffles so that the last pasted item is first in the list and the previous last copied item goes at the end. This seems like a bug, as older entries become earlier in the list from the newer ones.
Not sure what you think is the bug here? It's a ring 😄 so if you paste twice the next ring rotates and the previous copied item is now first. The most recent one goes to the end of the line.
and didn't notice any difference
You should be able to see the difference, when you copy something from outside of visual studio. The copied text is not in the ring, because how should the extension know, that you copied something somewhere else. But when you now paste or copy something inside of vscode, the extension checks if the clipboard holds something new and if so adds it to the ring, before performing the copy/paste you actually wanted.
Ah, OK, it checks the contents of the system clipboard and adds them to clipboard ring. That makes sense.
I would expect it to have ring properties when copying and running out of space, then the new item will override the oldest in the ring (like in a Ring Buffer data structure). I would not expect the ring to rotate when pasting, because now we have to shuffle the whole ring to get to the last copied item, which I'd consider undesirable.
Ideally IMO: when pasting if the pasted item is not last in the list it is put as last in the list and other items that were newer are just shifted one down, without rotating the ring.
However, as a presumably simpler solution, would it be possible to turn off ring shuffling on paste in the options?
Every time a clipboard item is pasted the ring shuffles so that the last pasted item is first in the list and the previous last copied item goes at the end. This seems like a bug, as older entries become earlier in the list from the newer ones.
Also, not quite sure what the wording in the docs means:
as I have the following settings:
and didn't notice any difference.
The text was updated successfully, but these errors were encountered: