Hacker News new | ask | show | jobs
by jonpurdy 961 days ago
So I solved this issue using a brute force manner a few years ago using aText (but any text substitution software should work, including Keyboard Maestro).

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.