55
votes
Paste image from the clipboard into a PDF in Preview
You CAN do it. At least this is what worked for me on MacOS Catalina and Preview Version 11.
Copy onto the Clipboard, the image that you want to paste on your PDF page.
Go to Preview -> File -> ...
53
votes
Accepted
When pasting in Terminal.app, `00~` is pasted at the start and `01~` at the end
Short answer: Run the command printf '\e[?2004l'. This sends an escape sequence to the terminal that tells it to stop sending bracketed paste sequences.
Other options: In Terminal.app, you can also ...
49
votes
Accepted
Copying blocks of text in terminal
You should be able to do this by holding the option key down while doing it. This changes the cursor to a '+' sign and allows you to select any rectangular area of text.
See screenshot below:
If ...
38
votes
Copy and paste multiple things in macOS?
I really like Flycut. Available here: https://github.com/TermiT/Flycut
Like all of the other answers here, it's a clipboard manager which stores every item you copy using ⌘ + c in a list. Then you can ...
35
votes
How to copy and paste as plain text on iOS?
At least in iOS 13:
Select the text
Don't tap "copy" but instead "share..."
Tap "copy" from the share sheet
This copies without formatting. Works at least in Safari and Mail and probably many other ...
27
votes
Accepted
Copy all the text of an entire `man` page from Terminal.app
You can push plain text to the clipboard by piping to pbcopy, to paste anywhere as usual.
man ssh | col -b | pbcopy
or equivalent
man -P "col -b | pbcopy" ssh
the latter of which is nicer if you ...
grg♦
- 199k
27
votes
Copying blocks of text in terminal
When using iTerm2, you can either use Cmd+Option+mouse to perform vertical/block selection, which transforms your cursor into a cross, similar to Terminal.app.
Or you can use copy mode:
Cmd+Shift+C ...
22
votes
Best way to copy all files, ignoring errors?
I like using rsync in order to copy files from a corrupted source to a functional destination:
rsync -auv --delete --ignore-errors /path/to/source/ /path/to/destination/
Where:
-a = "archive mode" =...
20
votes
Accepted
How to secure macOS's clipboard?
No security for data that is in one of the system clipboards is possible by design. This appears to be changing with 2020 features in publicly announced betas where Apple potentially will notify us ...
19
votes
Accepted
How to automatically paste today's date with keyboard shortcut?
You could do it with Automator like this:
Create new: Services
Services receives no input in any application
Use the search to find and add action: Run Applescript
Copy and paste the following to ...
18
votes
Download link for older Safari Technology Preview version 51
Use the Wayback Machine:
https://web.archive.org/web/*/https://developer.apple.com/safari/download/
Once you find the download page of the version you'd like to download, strip Wayback Machine's URL ...
16
votes
How to automatically paste today's date with keyboard shortcut?
I wanted to use the system date format for consistency, rather than programming it into the shortcut.
It takes about 30 seconds to set up.
In Automator (Applications folder)
New service
Receives no ...
16
votes
Accepted
Does OS X continue to copy files when my laptop goes to sleep?
There are various modes of sleep a Mac can go into. At this point your question only describes the fact your laptop screen goes to sleep, but this is different from your computer actually going to ...
16
votes
Accepted
How to do I save a file that has been put into the clipboard?
An easy way is to use the built-in Preview app.
Copy the image.
Open Preview.
Press: ⌘+N
A new window will open with your copied image.
On the menu bar, click File > Save, or press ⌘+S, and a ...
14
votes
Accepted
What command compares two directories recursively and validates that they are exact mirror images (if possible)?
The answer to this is rsync. Not just to do the copy as @nohillside suggests but it can be setup to do just a verification.
Normally I would say you need to get a newer version of rsync than macOS ...
13
votes
Copy all the text of an entire `man` page from Terminal.app
If you want to read the man page in Preview, nicely formatted as a PDF, you can run
man -t ssh | open -f -a Preview
Or
man ssh | col -b | open -f -e
to open the text version in TextEdit.
13
votes
Accepted
Removing all characters except digits from clipboard
The shell snippet
pbpaste | tr -cd "[:digit:]+" | pbcopy
will take the content of the clipboard, remove all non-digits and put the result back into the clipboard.
12
votes
Accepted
How to use AppleScript to create a new Rich Text Format file from clipboard text?
This answer has been updated to reflect rubik's sphere's misunderstanding between what Rich Text is (what was originally asked about) and what's actually being worked with from Google Chrome, being ...
12
votes
How to copy and paste as plain text on iOS?
In Mail on iOS 12, I use the "Share > Copy" trick:
Paste formatted
Select the just pasted text and in the context menu swipe right and tap on "Share..."
In the Share sheet, tap on "Copy". This copies ...
12
votes
Mac Terminal or iTerm: Copy the current command but exclude prompt?
Just use the command
echo !! | pbcopy
The double exclamation points is “last command”. It’s then piped to the pbcopy command which puts it in your clipboard.
There’s no shortcut, but you can make an ...
11
votes
Rotate Selection in Preview
Copy the selection.
Open the selection in a new document.
Rotate the new document.
Select and copy the new document.
Paste the new document into the original.
Re-position.
grg♦
- 199k
11
votes
Copying blocks of text in terminal
You might also try using awk to limit the shell output to what you want. You could then even pipe it to pbcopy
11
votes
Accepted
How do you cope with tons of web fonts when copying and pasting from web pages?
Most people I know set the paste shortcut to invoke paste and match style. Here is the command to change:
You can paste with style when you really want it, but for me 95% of the time I don’t want the ...
11
votes
Accepted
Command + Shift + 4 not saving image to clipboard
Command + Shift + 4 saves a file to the desktop, not to the clipboard.
Use Command + Control + Shift + 4 to save to the clipboard.
Take a look at this comment I wrote a few years back for the full ...
9
votes
Text copied from Terminal with formatting in Mavericks (10.9), Yosemite (10.10), and El Capitan (10.11)
In El Capitan, you can set the formatting in Terminal app. Simply select Edit -> Copy Special and select Plain Text for no formatting or you can create a profile that looks good when pasted in a ...
9
votes
Is there anything like the clipboard manager Ditto for Mac?
The one I've found (Maccy) which is available free (yet if you like it, you should donate as well) and exactly like Ditto, simple and focused.
For details:
here is the link to it's official site: ...
9
votes
Command + C does not always work on first try on MacOS
I think it's possible for Apple's Continuity Universal Clipboard feature to cause something like this, depending on the quality of the signal connection with any nearby iOS devices.
Perhaps try ...
8
votes
How to force OS X Notes application to lose formatting when I paste text from clipboard?
You can select the text in Notes app, then Format -> Font -> Remove Style. Unfortunately there's no keyboard shortcut for that command :/
8
votes
Is there a faster way to copy time machine files from one disk to another?
Migrating a full 3TB Time Machine encrypted drive to a new 8TB one on macOS 10.14, I ran into all sorts of issues. Trying to do a restore in Disk Utility errored out with “unable to validate source” ...
8
votes
How to prevent iTerm2 from creating overlaps and broken lines after pasting multiline chunks of text?
From docs:
Pastes (both regular and slow) are done by splitting the text to paste into chunks. There is a delay between the transmission of each chunk. To change the speed that "paste" pastes at:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
copy-paste × 498macos × 188
terminal × 64
finder × 51
applescript × 46
ios × 33
keyboard × 30
command-line × 26
automator × 25
iphone × 23
mac × 21
ipad × 18
safari × 18
preview × 16
macbook-pro × 12
screen-capture × 12
text × 12
software-recommendation × 11
ms-office × 11
shortcut × 11
formatting × 11
bash × 10
pdf × 10
iterm × 10
applications × 9