zed icon indicating copy to clipboard operation
zed copied to clipboard

Maintain history of clipboard actions

Open borisgoro opened this issue 2 years ago • 2 comments
trafficstars

Summary

Support/preserve a history of items pushed (copy) and pulled (paste) from the system clipboard.

There are various third party OS tools, but Zed could specifically maintain this history of clipboard actions which involve Zed.

Similar to JetBrains, many VS Code extensions, SublimeText packages and various OS-specific tools.

Bonus

What would be cool is to display the results of pasting each entry in a multi-buffer style view and allow editing and selecting a buffer to apply.

borisgoro avatar Aug 01 '23 18:08 borisgoro

this is already a feature in KDE Plasma Desktop as a system tray icon, but Windows doesn't have this feature. I'm not sure if it's healthy to have overlapping features, maybe the clipboard history should be provided by an external optional package.

smm9509 avatar Sep 14 '24 04:09 smm9509

IMHO, the clipboard history must be provided by the editor:

  1. Zed must be batteries included, I want clipboard history regardless of what system I'm in.
  2. Zed keeps extra information when copying lines with multiple cursors, so that you can paste it at each cursor if the amount of cursors when pasting matches the amount you had when copying.
    • When reading back from the system clipboard manager (might depend on which one), you lose this extra information, and pasting doesn't work as expected.
      • Tested and confirmed with xfce's clipman.

marcospb19 avatar Nov 20 '24 20:11 marcospb19