Several months ago I wrote a program to normalize your clipboard, removing fonts / colors / sizes and mostly leaving semantic information: anything that can't be represented in Markdown was dropped. Now that I can have…

9 points•luu•about 2 months ago•17 comments•

17 comments

Stitch4223about 2 months ago
Thanks, this is one of these small things I’m used to working around instead of finding a solution.

Countless times I’ve used the browser address bar to reduce text to plain text. Which in some browsers doesn’t work anymore (feature): which could be worked around by pasting more, then removing a character. - It was fast and always in view. The real issue is that I usually don’t want formatting… until I do. :)

arcanemachinerabout 2 months ago
Isn't there a shortcut to past without formatting? Ctrl+Shift+v? (Or whatever the hell Apple came up with for macOS.)
iliaznkabout 2 months ago
That's right, cmd+shift+V pastes without formatting. And there's also a context menu option for that.
tuoretabout 2 months ago
Just yesterday I noticed that if you do "paste text only" when pasting a URL in Outlook, the link is no longer clickable, just a string of text. Maybe it would turn into a clickable link by the time the email reaches its recipient, who knows. But I ended up doing the "paste into notepad and re-copy" thing.

Normally I also use the address bar, but these days if you copy-paste a web address from Edge to Outlook/Teams, it won't show up as the URL itself but the page's title as a hyperlink.

dv35zabout 2 months ago
Browser bar technique - yes!

Alt+Tab (switch to browser), Alt+D (to get to the browser bar), Ctrl+V (paste), Ctrl+A (select all), Ctrl+C (copy), Alt+Tab (switch to application), Ctrl+V (paste unformatted text)

What a muscle memory! Wish Ctrl+Shift+V (paste plain text) was standardized at the OS level.

Note: Using Mint Debian Linux, but the same flow seems to apply to Windows & Mac.

Bonus: I really wish copying a file in the GUI (Finder on Mac, file explorer on Linux) would default to pasting the full file path/name, when pasting into plain text. I can't believe how difficult it is to get the actual file name in a modern OS!

marcomouraoabout 2 months ago
I always used Alfred for this. A snippet for {clipboard} which effectively pastes in plain text. I also have workflows to manipulate text that are basically: pbpaste | (do something) | pbcopy
evgpbfhnrabout 2 months ago
> Replacing Pandoc (GPL and so incompatible the the App Store TOS)

... wait, you can't publish an app using GPL components to the app store? What's the point of this? .. oh, that made quite some noise around 2010 https://lwn.net/Articles/391423/ but I had forgotten all about it... Impressed this still stands...

psittacusabout 2 months ago
It might not for GPLv3: it tries to sidestep it by explicitly voiding any clauses placing additional restrictions, but Pandoc is using GPLv2

https://opensource.stackexchange.com/questions/9500/is-apple...

https://github.com/jgm/pandoc/#license

ubittibuabout 2 months ago
pbpaste | pbcopy

Make a shell script and add to services

jefftkabout 2 months ago
You can't put rich text on the clipboard with pbcopy.

But this is basically what I tried first: https://www.jefftk.com/p/clipboard-normalization

MiroslavPokornyabout 2 months ago
thanks for sharing, a github would be nice.
jefftkabout 2 months ago
MiroslavPokornyabout 2 months ago
followed & starred

Read the full thread on Hacker News →

Related stories