Skip to content
Tech News
← Back to articles

Ghost Cut – or why Cut and Paste is broken everywhere

read original more articles
Why This Matters

Ghost Cut addresses longstanding issues with traditional cut and paste functionality, such as undo limitations, document reflow, and lack of atomicity, which impact user efficiency and accuracy across various applications. By introducing a more reliable and seamless method, it enhances user experience and could influence future text editing standards in the tech industry.

Key Takeaways

Cut & Paste is broken in every word processor, code editor, and browser text area you've ever used. And it has been that way for decades.

Just so we are on the same page: cut & paste is the combination of two operations: cut to remove the text from the document and place it in the clipboard, and paste to insert that text at a new point in the document.

How can it be broken if it is so ubiquitous? Let me list the ways!

1. Cut is undoable

The first flaw in cut & paste is that a cut can not be fully undone. Undo (control+z or command+z) after a cut restores the text to its pre-cut state in the document, but changes to the clipboard remain. If you regret replacing your clipboard contents then too bad, they have gone poof in the digital ether. Even if you use a clipboard manager, the undo has still not cleanly undone everything that one key did.

2. Cut reflows

The second flaw is that a cut reflows the document. A cut and paste is almost always for the purposes of moving text, and yet the instant I cut, the text reflows and I have to locate the point where I want to paste all over again. A tiny cognitive burden perhaps, but I'd argue an unnecessary one.

3. Cut & Paste is not atomic

The third and final flaw is that even though a cut and paste is conceptually an action which moves text from one place to another, it can't be undone as a single step (ignoring the clipboard issue for the moment). Undoing a paste will remove the newly added text, but it requires a second undo to completely restore the text—assuming there weren't any edits between the cut and paste. If there were intermediate edits, like creating a new paragraph, then that must be undone before we even get to the original cut.

Introducing Ghost Cut

... continue reading