Paste without formatting on macOS
scottswezey.com
scottswezey.com
If I'm transferring between applications, I never want 95% of formatting — I don't want font or size or color or line-height or paragraph spacing or whatever.
But I do want italics, because that conveys actual meaning around emphasized words and titles. And I do want to preserve subscript/superscript in things like CO2 or "squared", because that's similarly meaningful. And I also want to maintain bulleted and numbered lists, which again have meaning. Strikethru as well.
So I just really wish that the OS had a toggle switch so that "Paste and Match Style" would still preserve everything "textually meaningful" -- <i>, <sub>, <sup>, <ol>, <ul>, <li>, and <s>.
It's something like 12$ one time purchase which is great and a huge productivity booster!
I want to carry them over when I copy and paste the text (and sometimes to strip them). I don't want to copy and paste the container.
Currently, on every computer I'm aware of, if I copy an all-caps paragraph and paste into the middle of an all-lowercase paragraph, the pasted text will still be capitalized. Similarly, if I click into an all-caps paragraph and start typing without caps-lock on, the new text will be lowercase.
Italics should work the same way.
Note: I am aware that capitals, unlike italics, are different characters in Unicode/ASCII. Put that aside for a moment, it's not relevant to UI behavior, users don't care.
In Chrome, if you copy CSS-all-caps text to the clipboard, it is copied as uppercase.
Intriguingly, in Firefox, it is copied as the original (mixed case) source HTML text.
I do like the idea treating all-caps as a style, just like small caps. The problem, of course, is that it makes it kind of impossible to type within it, since there's no feedback as to when you're typing capital letters at the starts of sentences or not.
Pressing ⌘I (or using the UI equivalent) should act like the italics version of caps lock.
A sentence with italics or any other emphasis should read exactly the same without that emphasis. Where the same isn't true of capitalisation.
But it doesn't, that's the thing! The word you italicize can alter the meaning of a sentence. For instance:
> "I didn't steal Sally's necklace!"
> "I didn't steal Sally's necklace!"
> "I didn't steal Sally's necklace!"
I didn’t say I took the money.
I didn’t say I took the money.
I didn’t say I took the money.
I didn’t say I took the money.
I didn’t say I took the money.
I didn’t say I took the money.
• The first version implies that I acquired Sally's necklace via other means.
• The second version implies that I stole someone else's necklace.
• The last version implies that I stole something else from Sally.
Not true. In conventional English, it is typical (if not expected) to add verbal emphasis to italicized words while reading aloud.
Italics is the most important of those styling options for formal English writing (eg MLA style). Underlining was traditionally used a as substitute if italics were unavailable.
I could see an argument for treating bold and underline this way as well, but I think the case is less clear-cut. Boldness is more likely than italics to be used for visual styling as opposed to semantic meaning.
Virtually the only time it's used within text is in a textbook-type situation, where the first use of key terms is in bold, but subsequent usage isn't. Which isn't helpful/relevant if you're copying a passage from it -- just because it was the first usage in that book, doesn't mean it's the first usage in your own document.
And underlining doesn't really exist typographically except for links. It's always been the handwriting/typewriter substitute for italics. It has no established meaning whatsoever -- any non-link usage of it is idiosyncratic, which is usually not something you'd want to preserve.
The user can copy any text from anywhere, and then with the help of the extension, paste the result (somewhere in the browser), in markdown, so emphasis and lists, etc. are preserved, while everything else is discarded.
There's countless implementations of formatting toolbars for web based editors, most of them bad, I feel like if operating systems handled this for users we wouldn't be wasting cycles on this kind of problem.
https://chrome.google.com/webstore/detail/copycat/jdjbiojkkl...
However, I would appreciate a setting that would let me arbitrarily switch between dragging vs reselecting already selected text.
Sometimes because I want to keep what’s in my clipboard already; other times because it’s sensitive enough data that I don’t necessarily trust all running applications with (the threat primarily being an application incidentally logging/persisting it as part of some “helpful” feature, not outright malware).
However, I agree with you a billion percent between apps. I'm sure I've copied text from a webpage into a document 10,000 times, and not a single time have I ever wanted the font or size or color preserved.
Just think it's an important distinction to preserve.
I will say, sometimes I do find myself wondering whether something was copied as plain text or as formatted text, or whether I pasted the previous thing before going to copy another.
I really like what Apple has done with screenshots — a thumbnail hovers in a pop-up window in the corner of the screen for a bit. Doing something similar with the clipboard might not be the worst idea — after cut/copy, a thumbnail hovers in the corner until you paste, or until 15s have passed.
The fact that "copy" results in zero visual confirmation whatsoever does seem to be a bit of a violation of standard UX guidelines. Heck, even a visual effect like a flash and quick zoom-fade-out of the copied content feels like it would be helpful.
I do think in the early days (for me, this is the 90s) I had failures that weren't fat-fingering, the keypress just not registering. Maybe the wrong window has had focus once or twice too in some weird scenarios.
That your keypress registered. You held down the modifier and you think you hit "C", but did you actually? For unfathomable reasons, when you copy text, there's no visual or other confirmation that anything has happened.
If it takes you a long time to navigate to where you want to paste (scroll a lot in an editor, juggle windows, etc.), it's a bummer to get there and learn that your clipboard doesn't have the text on. You have to make another round trip.
While I don’t paste in place of my copy, I do use Cmd+Ctrl+V to paste in Terminal (which escapes all “special” characters with a backslash) to avoid trouble.
To counter your first use case, if I'm copy-pasting the second word (say it's a complicated name) of a heading to reuse in a paragraph, I don't want that paragraph to be another heading. In another universe, the geniuses who coded the editor realized that "no one will ever want a word in the middle of the paragraph to be in a different font, in a different color and with a different background color because they copied it like that from a website with that formatting".
I wonder if there's a good reason why this is the default, or if it's a case of some engineer in the 80's simply choosing one over the other
ctrl-v was pretty basic, because the all the apps were basic. Most text was basically unformatted (Notepad) or moving from one part of a document to another (Word). Then companies introduced the notion of grabbing metadata along with text, so that you didn't have to figure out what font, size, and color were being applied every time. Then copy/paste was applied to non-text like image parts, files in a directory, etc. You could copy graphs from Excel and put them in your PowerPoint slideshow.
Then folks found out they didn't necessarily want all that metadata along with their content, so shift-ctrl-v was introduced. Somewhere along the way, patterns emerged for many folks (like myself) where matching the target formatting was the more common case. This is especially true among coders.
It's too late to change the default for everyone, but this tweak allows for some of us to tailor the behavior more closely to our own personal workflows.
People seem to be under the impression that Ctrl-Shift-V is a Windows feature, when in reality it is part of three specific applications and then the wild-west everywhere else.
My point being: I'm unsurprised MS gets the MacOS norms wrong when they cannot even get it right on Windows.
(Don't get me wrong, macOS is slowly getting there too, it gets worse every year.)
When I type the characters 'zv' it substitutes for the clipboard. This gets around any smartness with formatted text and apps trying to be clever. I also chose zv because the substring is unlikely to appear naturally when being typed anywhere. (I prefix most of my substitutions with jj but wanted as few characters for this as possible).
I also use Keyboard Maestro to get around apps and websites that block pasting (like password validation fields).
Macros:
- type from clipboard: instead of pasting, it simulates each character as a keystroke
- insert then type: same thing but shows a text input window
- insert then type (50ms/200ms): same thing, but also simulates latency in case certain apps can't handle unthrottled keyboard input (found this when typing into remote terminals sometimes for whatever reason)
Also check out Pasteboard Viewer.app to see what the MacOS pasteboard actually contains (it can contain text and formatted text and images and lets the app choose what to paste, which can be very confusing).
Amazes me how many hacks like this are required just to use a computer the way I want.
Firstly, the menu item is “Paste and Match Formatting” in Word, not “Paste and Match Style”, so you’d have to tweak that separately.
Word also has quite a few settings for copy/paste behavior that will affect what it does (https://support.microsoft.com/en-us/office/control-the-forma...).
I think those vary by version. For example, Word for Mac 2019 has “Merge formatting when pasting from PowerPoint” and “Adjust formatting when pasting from Excel” checkboxes. Don’t ask me what the difference between “Merge” and “Adjust” is.
> Also, why is it "shift command V" in some places and "shift option command V" in others?
It’s a relatively late addition to ‘standard’ commands. I guess the search for an unused combo that’s reasonably logical led to different results in different applications.
I guess Apple went for option-shift-command-V (https://support.apple.com/en-us/HT201236) because it’s fairly complex, and less likely to be already taken.
Why can't I just have a navigation bar in the finder window that I can manually add in.
Why do I have to google a keyboard combination just so I can view hidden files and folders.
So many little things but they can add up. And it's not a Microsoft v Apple thing. Unix distros dont have a special 'command' button just for them to confuse things.
https://osxdaily.com/2023/05/25/how-to-add-apps-to-macos-fin...
You can create a shortcut (or applescript) that does the things you mention.
Apple also aimed for simplicity, and when copying between MacWrite and MacPaint (the only two applications everybody had), keeping formatting was the best option.
Add a few decades of people getting used to that behavior, and changing it takes guts, and will upset quite a few users who know how to repair formatting after pasting, but won’t easily learn about the new keyboard combination.
I also am not sure stripping formatting by default is the best choice today. See for example https://news.ycombinator.com/item?id=38142074, who wants something in-between.
Maybe, paste should keep only formatting of entire units being pasted? So, it would keep bold, italic, etc, but only keep line height, margins, etc. for entire paragraphs being pasted? I can see people getting highly confused about that, too, though, especially about the difference between selecting all characters in a paragraph and also selecting the paragraph boundaries.
Unbelievable how frustrating it is, almost on par with autocorrect correcting the same word twice after I typed it out twice.
I mean for ducks - I mean ducks, no ducks sake…
I recalled Windows can do it by using Ctrl+Shift+V which paste without formatting. Just a extra key to make it happen.
Once autocorrect decides a word is capitalized, the keyboard will always do exactly the wrong thing when you try to fix it. You’ll backspace to the first letter, and the shift key will highlight so you capitalize some non-capital word. Or, having been burned by this, you’ll tap shift to turn that off, but it guessed you would do that, so you’re still capitalizing. And if autocorrect changed a name to a common word, good luck capitalizing the name.
There is a PhD, and possibly a new branch of physics, to be had here.
[1] https://support.apple.com/en-qa/guide/mac-help/mchlp2299/mac
So, when I set up or re-set up the OS and the app, I try to see if I can live with the Defaults as much as possible. However, I spend quality time learning the details, so I’m not just jumping to a different App that does it better.
Example. I’ve been using Apple’s Default Mail App and have tried a lot of other Mail clients. Some are awesome; some are fantastic. I learned all the shortcuts and tricks to make it sing to any tune I wanted. My Apple Mail does not have toolbars or anything else except the message list and the message[1]. It’s a similar setup for many other default Apps.
I did love Fantastical, SuperHuman, etc. I might even use them, but that would be to separate an entity (say, work) but not for the Default Me. I love the idea of using any computer/device/system easily instead of one perfectly.
So, for the copy-paste without formatting. I suggest letting the Default be. I know the shortcuts sideways, and my muscle memory kicks in to do the correct one. I love Obsidian pasting it as Markdown when I copied HTML, but my fingers do the right job for pasting in the un-styled format in Apple Notes.
1. https://cdn.oinam.com/img/oinam/brajeshwar-apple-macos-mail-...
> If you go to the Workflows tab, click the [+] in the bottom left, under Templates > Clipboard > you'll find a "Paste as plain text from clipboard" workflow. Add your own hotkey, and you'll be able to do exactly what you need https://www.alfredforum.com/topic/10032-clipboard-hotkey-tha...
There is a multitude other tools recommended in this thread also. The one thing I would recommend for those who does not have any clipboard tool is don't just get something that does plaintext. Get something that does HISTORY and plaintext conversion.
Clipboard History/Search is among my top 10 productivity enhancements hacks that anyone can do and benefit from, might even be the nr 1.
Whoever championed it at Microsoft and managed to get it included by default in Windows 10 (Press Win+V) deserves a medal.
Within an app, copy and paste with styling makes sense as you are trying to reproduce chunks of text.
Easy multi-tasking only came later after default were established.
So Apple, retire it with the silly touch bar, push really hard click, and the lightning connector. Maybe these devs would be happer making touch text editing more than awful.
The touchbar would have been cool if it was a rock solid implementation that never bugged out.
And yeah, lighting can’t die fast enough.
In fact even file copying is done this way, it copies the list of filenames as type application/file-list or something of the sort.
But while we're at, "smart quotes" should be nuked, or at least default to off.
- Cmd-V: with styling
- Cmd-Shift-V: without styling
Cmd-v paste
Cmd-v-v paste no format
Maybe some day proper keybinding support will come to the OS default GUIs
xsel -o -b | xsel -i -bI love the Mac keyboard shortcut system. It's so brilliantly flexible.
What problems are you seeing with terminal? Copy/Paste work fine for me.
And Microsoft Word actually provides menus both before and after pasting allowing to choose how the styling of the pasted content should be handled.