5 ms·
Remove unwanted formatting from text in the clipboard: alias pbclean='pbpaste | pbcopy'
by natch 11y ago
Remove unwanted formatting from text in the clipboard:
alias pbclean='pbpaste | pbcopy'
- dllthomas 11y agoI wrote "write the clipboard to a temp file; open it in vim; when vim exits, if the temp file has been written, load it into the clipboard". Pretty convenient. Also, (though not, I think, relevant to OS X), binding a key to move content between PRIMARY and CLIPBOARD on X Windows has been very nice.
- endymi0n 11y agoNot exactly memorable, but glad that I discovered it eventually: "Shift + Option + Command - V" = Paste as Plaintext.
- revicon 11y agothis is pretty cool, added it to my .bashrc
- roryokane 11y agoI use Plain Clip for that: https://www.bluem.net/en/mac/plain-clip/ https://www.bluem.net/en/mac/plain-clip/. It’s a standalone Mac app that cleans the clipboard and then quits immediately. I can run it quickly with LaunchBar while I’m using a GUI app.