gnome-shell-extension-clipboard-indicator icon indicating copy to clipboard operation
gnome-shell-extension-clipboard-indicator copied to clipboard

Clear history preserves the last item copied

Open raffaem opened this issue 3 years ago • 4 comments

The "clear history" menu option preserves the last element copied.

Would it be possible to remove that too?

It is very counter intuitive.

After you click the "Clear history" button, the message box promises "to delete all clipboard items"

raffaem avatar Mar 29 '21 13:03 raffaem

Can reproduce. Actually, I've known for a while. Was too lazy to report.

mcl21014 avatar Mar 29 '21 18:03 mcl21014

It seems already documented in the code:

https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator/blob/master/extension.js#L354

// We can't actually remove all items, because the clipboard still // has data that will be re-captured on next refresh, so we remove // all except the currently selected item

sWoRm avatar Aug 31 '21 14:08 sWoRm

I think this can be mimicked by setting the clipboard to an empty string. Marking this as "bug" and "up for grabs" in case anyone would like to pick this up.

Tudmotu avatar Nov 14 '21 21:11 Tudmotu

agree. it keeps the last one till the next login. what about having an option for auto-delete while log out or technically clear the history while login?

in ungoogled-chromium for example the extensions for auto-cleaning the browser history actually delete the data when you start a new session and not when you close the browser.

Suryavarman-II avatar Jan 19 '22 07:01 Suryavarman-II