News for hackers. Stuff that matters.
Re:Microsoft Teams 2 will use half the memory, dropping Elec... by Someone on Saturday June 26, 2021 @12:53PM (#27643509)
History. The Mac didn’t have “paste without formatting”, and assigned ⌘-V to “paste with formatting”.

Even if it had, they might have made it the default, either to show of that styles copied over, or for consistency. If you paste a picture, you don’t lose formatting, either (of the picture, whatever that means, or any text in the image)

If you copied some text in MacWrite, for example, exited MacWrote, launched MacPaint, and ⌘V-ed into MacPaint, you likely wanted to keep the font, size and style.

Some programs also have several variants of “without formatting”. Excel is a good example (https://support.microsoft.com/en-us/office/paste-options-8ea...). Which one should be the default?

Re:Microsoft Teams 2 will use half the memory, dropping Elec... by ljm on Saturday June 26, 2021 @04:34PM (#27645585)
Last time I built something on MacOS, this was basically just a feature of the clipboard API that each app could use independently. When copying to the clipboard, you could declare numerous formats for what was copied, and any app receiving clipboard input could state that they only accepted one format.

e.g. copy a jpeg file and you can paste it into Slack, and it will automatically add the image to the post. Paste it into the terminal and you'll get the absolute path to the file. Those sound like sensible defaults that are essentially 'context sensitive paste'.

You could copy a link from a webpage and store both the HTML version and a raw-text version in the clipboard, probably a version that used an annotated string, too.

For the same reason, yeah... this isn't as intuitive when it comes to software like Excel.

Re:Microsoft Teams 2 will use half the memory, dropping Elec... by Someone on Saturday June 26, 2021 @06:05PM (#27646358)
That has been around on the Mac since 1984 and applications were always encouraged to put plain text on the clipboard alongside formatted text, but we’re talking UI here, not technology. This kind of UI allows you to choose which of these you want because it turns out the application cannot always make the best choice.
Re:Microsoft Teams 2 will use half the memory, dropping Elec... by stephenr on Saturday June 26, 2021 @02:05PM (#27644278)
And yet macOS now has paste without formatting in almost every app I can think of (it’s enough that I’d guess it’s a standard thing apps get if they use native frameworks) AND it’s trivial to remap a menu item to another keyboard shortcut across the entire OS.
Re:Microsoft Teams 2 will use half the memory, dropping Elec... by Dylan16807 on Saturday June 26, 2021 @02:33PM (#27644563)
> Some programs also have several variants of “without formatting”. Excel is a good example (https://support.microsoft.com/en-us/office/paste-options-8ea...). Which one should be the default?

Most of those are very specific versions of formatting or specialty features.

The only ones that would qualify as "paste without formatting" are "formulas" and "values" modes, and of those two I'd probably say "formulas" is a better default.