Agree accidentally clobbering the clipboard is super annoying. Clipboard history apps are a godsend. Like Paste on Mac, or Windows has it built in.
The Mac now has a clipboard history as well, it's just a bit awkward. You can open Spotlight with ⌘Space, and within Spotlight open the clipboard manager with ⌘4.
Ghost Cut – Or why Cut and Paste is broken everywhere
61–70 of 162 posts
Re: Ghost Cut – Or why Cut and Paste is broken everywhere
#62issue here: https://github.com/anomalyco/opencode/issues/13984
ALWAYS default to regular behavior unless it's something you know exactly is going to go correctly.
Re: Ghost Cut – Or why Cut and Paste is broken everywhere
#63This is the fatal flow of the whole thing, with this it stops being a drop-in replacement.
Re: Ghost Cut – Or why Cut and Paste is broken everywhere
#64Earlier quoted context omitted.
Yes, I disagree that the cited behavior is defective. But I respect his pointing-out of the shortcomings and offering other options. I find myself using the clipboard-erasure "defect" somewhat frequently to cut something to the clipboard, and then undoing the change and using the clipboard contents. And this is specifically useful in a way that merely copying isn't... but at the moment I can't remember why, or whethe…
It's really natural! - make a bunch of edits - decide I don't like all of them - copy the part I want to keep - undo a bunch - paste the good part This is copy, not cut, but it wouldn't work if the clipboard state was part of the undo system.
Re: Ghost Cut – Or why Cut and Paste is broken everywhere
#65The Finder has an interesting take on this: copy a file with ⌘C, then move it somewhere with ⌥⌘V. This is much nicer than the Windows Explorer's CTRL+X and CTRL+V, where the user is unsure what happens when they never paste the file.
It feels to me like cut/copy (in the clipboard manipulation sense)/paste are nonsensical operations on files in the first place.
Re: Ghost Cut – Or why Cut and Paste is broken everywhere
#66This is why copy and paste is broken for so many years, because devs at these beautiful companies, decided to let you wipe your end-user's clipboard when chatInputText.length === 0 or whatever. I noticed people having consistent issues with copy and paste when Teams became more prevalent, and it made no sense, until I realized.
If you work for one of these chat companies, for the love of GOD make an internal ticket, this is embarrassing.
Re: Ghost Cut – Or why Cut and Paste is broken everywhere
#67Re: Ghost Cut – Or why Cut and Paste is broken everywhere
#68Cut and Paste is three operations. Cut is two operations copy and delete, copy is never undone by undo it should not be undone when you cut either. I cut, undo, ..., undo, and paste multiple times a day. It's a feature not a bug. > Cut & Paste is not atomic Yes because it's two different actions. What does "Ghost Cut" do if you paste multiple times? Paste the cut text first and then what? The previous thing in your c…
>paste multiple times Because you're trying to 'copy' it? This feels baby-duck-y. No given mental model is more right than another. There's already not even a consistent model, because: >Cut is copy and delete So copy and delete! Or, in Vim and Emacs, just delete!
Off topic, but that’s actually my biggest pet peeve vim. You copy text one place to overwrite some other text, you delete the existing text and they you go to paste and… the buffer has been overwritten. It makes so much more sense to require users to hit the obvious, composable ‘yd’ in the cases they want to copy than an arcane incantation in the cases they want to overwrite text.
Re: Ghost Cut – Or why Cut and Paste is broken everywhere
#69Re: Ghost Cut – Or why Cut and Paste is broken everywhere
#70Cut and Paste is three operations. Cut is two operations copy and delete, copy is never undone by undo it should not be undone when you cut either. I cut, undo, ..., undo, and paste multiple times a day. It's a feature not a bug. > Cut & Paste is not atomic Yes because it's two different actions. What does "Ghost Cut" do if you paste multiple times? Paste the cut text first and then what? The previous thing in your c…
Yep, which is why the dislike for macOS's finder workflow of copy a file: ⌘+C (irrespective of cut/move/copy) -> decide at destination: ⌘+⌥+V (move) or ⌘+V (paste) confuses me. It's the best intuition imo.
Weirdly, Windows does the same thing which doesn't garner enough hate as it also excludes the associated good UX. Cut fades a file out in the explorer (akin to this "Ghost cut" concept) then a paste moves it (so you don't end up losing files).