HeadlinesBriefing favicon HeadlinesBriefing.com

Ghost Cut: Fixing Cut & Paste Flaws

Hacker News •
×

Cut & Paste, a ubiquitous feature in text editing, has long been flawed. The author, Ishmael, identifies three primary issues: cuts are not fully undoable, the document reflows after a cut forcing users to re-locate paste points, and cut & paste is not an atomic operation, requiring multiple undos to reverse.

To address these problems, Ishmael introduces "Ghost Cut" in his editor, Ishmael. This mechanism fades selected text when Ctrl+X is pressed, making it inert but still present. No text is placed on the clipboard, and no undo is needed. Pressing Escape restores the text. Pasting (Ctrl+V) then removes the 'ghosted' text from its original location and inserts it at the cursor, creating a single, atomic, and fully reversible move operation.

This "Ghost Cut" functionality, which Ishmael notes has a precedent in applications like Excel, offers a cleaner way to move text without altering the clipboard or requiring complex undo sequences. While the author acknowledges the case is less strong for code editors like VSCode, he expresses a desire for this feature to be adopted more widely.