Hacker News new | ask | show | jobs
by mundays 836 days ago
On the subject of copy pasting, does anyone else use the browser's address bar as a quick way to get rid of line breaks? Ideally, I would prefer a less janky way but I do it too infrequently to justify a dedicated program.
4 comments

I have a keyboard shortcut that opens my clipboard in neovim. Then, it's as simple as ggVGgJ:wq
Sounds useful, how did you set it up?
Back when I used Windows I used AutoHotKey to do things like stripping formatting, removing line breaks, or whatever I found myself wanting to do frequently. It’s an extra program, but not dedicated to that one feature, I had it doing all kinds of stuff over time.

HammerSpoon on macOS can likely do some similar stuff, but not as powerful, in my limited use of it.

I’m not sure if there is something similar for Linux, I assume so.

I just use the Run dialog (WindowsKey+R) to get a plain text box.

Run Dialog (WindowsKey+R), Paste (Ctrl+V), Select All (Ctrl+A), Copy (Ctrl+C), Cancel (ESC). Now clipboard has plain text.

Cmd + Shift + V works in a large number of places.