60 comments
@davesmeg @CriticalCupcake It's a long time (decades!) since I've written any low level Windows clipboard code, but my recollection is that the cutting application should register as many formats as it be bothered to cope with generating, and it's then up to the pasting application to choose which one it wants. So I would put the fault firmly on the pasting side. @TimWardCam @CriticalCupcake Create a problem and then let someone else come up with a solution, when they do, make the problem more complicated and make others do even more work to come up with a solution. @davesmeg @CriticalCupcake I was indeed surprised when I started writing clipboard code to find how complicated it was. There's also yet another layer of complexity around keeping stuff on the clipboard after the publishing application has closed. But all this complexity is designed to give a simple and straightforward user experience ... which it was, until some misguided smartarses decided to change their default format for text pasting. @davesmeg @TimWardCam @CriticalCupcake As always, this should be the USERS choice. There was already the problem of the paste command losing information. A no-no! It's not just a plain text world for many people. @ianp5a @davesmeg @CriticalCupcake Yes, it should be the user's choice. We're discussing what should be the *default*, without having to right click or find a menu or anything. @TimWardCam @davesmeg @CriticalCupcake Defaults will never be right for everyone. Defaults are something where devs are damned if they do, and damned if they don't. If you can't give a user choice, then if you are in an IT setting, then maybe plain text is preferred. Many of us are not in IT though. @ianp5a @TimWardCam @davesmeg @CriticalCupcake @MennoWolff @ianp5a @TimWardCam @davesmeg @CriticalCupcake @TimWardCam @ianp5a @CriticalCupcake I think that when using right-click to select "copy" there should be an option of "copy with formatting." @davesmeg @ianp5a @CriticalCupcake That's not how the Windows clipboard works - the "cut" operation should offer as many formats as the source application can cope with, it's up to the "paste" application to choose one that it understands. What we're discussing is what should happen when the "paste" application can understand multiple of the formats on offer. @CriticalCupcake @Cleopatra @CriticalCupcake HOW MANY TIMES do I have to paste text and it turns out to have a light grey background?! Pasting first to Notepad and then again to where I want it to land, story of my life... π€¦ββοΈ @CriticalCupcake I would quite like the compromise of merge formatting so it captures any key structural information like headings, lists, and emphasis. @mark I quite like that idea, i'd settle for being able to set the default with this as a viable alternative. @CriticalCupcake In ten years time weβll probably have to change the meme into βpaste without content enhancement should be the defaultβ once LLMβs like GPT are a standard part of our tools. @q_observations @CriticalCupcake if that stuff becomes "a standard part of our tools" I will simply stop using tools tbh Or at least stick to software without that nonsense, or forks with it removed @CriticalCupcake yup yup - but for now if you are on Mac you can use this free tool from @sindresorhus to achieve just that in the background https://sindresorhus.com/pure-paste @CriticalCupcake For text from the web the 'Copy plain text' plugin for Firefox is great. @CriticalCupcake that will require developers to publish html without <div>-itis, actually provide lists to be parsed (i.e., use the semantics as they are expected in html), etc. this requires #a11y-first thinking across the board, and no more appeals to js frameworks that offer corner-cutting as a service. It's more intuitive to copy some formatted text and paste it with the formatting. Most applications give you a "Paste without formatting" option. @CriticalCupcake Yup. 1000%. However it got decided to paste with formatting as default... @CriticalCupcake I use a keyboard maestro command to paste whatever is in the clipboard without formatting - itβs a great solution for this. @CriticalCupcake The footnote font should be the same as as the font in the body of the document. @CriticalCupcake hear me out... then it isn't truly copy. I'm 100in for all pasting utilities to support without formatting, but copy needs to remain copy. @CriticalCupcake At least on Linux, you can just highlight text to copy it and paste it (unformatted) with the middle mouse button. No <shift> + <ctrl> + V required. @CriticalCupcake @futurebird I use Paste Plain Text from Fiplab, for MacOS. Does what it says on the tin, and it lets you toggle it on and off with a dropdown in the menu bar. @CriticalCupcake This! 800 times a day, this! Mind you, at least I finally learned the keyboard shortcut for it, but still β¦ @CriticalCupcake ms office canβt even seem to handle basic table formatting between its own software @CriticalCupcake ctrl+shift+v pastes without formatting. While it's not default it's not that difficult to do either @CriticalCupcake βpaste contentβ and βpaste formatβ should always be two separate commands. @CriticalCupcake i really don't understand how it became mainstream, especially since there are multiple platforms that simply don't have that kind of tech |
@CriticalCupcake It used to be before someone decided to include the formatting on the copy command.