hazel icon indicating copy to clipboard operation
hazel copied to clipboard

Structural copy/paste

Open disconcision opened this issue 3 months ago • 0 comments

If code is copied from the editor and pasted in the editor, maybe we should retain the original zipper structure rather than reparsing from text. This would be both faster, and it could retain any metadata not expressed in the text source, like projections.

(May implement this as part of #1218)

Considerations / Challenges:

  • Cut/paste could reuse same ids; copy/paste would require replacing them.
  • Making sure this doesn't get out of sync with system clipboard

disconcision avatar Apr 30 '24 21:04 disconcision