Live data from Hacker News

Don't fuck with paste

github.com

361–370 of 397 posts

Re: Don't fuck with paste

#361

I use Hammerspoon for Mac, have a shortcut set up for Cmd+Shift+V to actually type the letters rather than use the paste function. Works every time someone pulls this stunt. > hs.hotkey.bind({"cmd", "shift"}, "V", function() hs.eventtap.keyStrokes(hs.pasteboard.getContents()) end)

> have a shortcut set up for Cmd+Shift+V to actually type the letters

Seems like this would be hard to "google"... can you provide a guide or a link to a guide on how to accomplish this?

Re: Don't fuck with paste

#362
post #360

Earlier quoted context omitted.

Probably because the US does have a pretty wide diversity, particularly when it comes to religion. In some areas you'll find a lot of Mormons (who are greatly offended by "fuck"), and in some Christians (where some denonimations don't even like the word "crap" let alone "fuck"), in some Catholics who generally don't seem to care (I've heard some Catholic priests let loose some pretty blue streaks lol), and all kinds…

Eh, European countries have diversity too. I've worked with religious extremists of all stripes over the years. The idea that the US is somehow unique diverse is one of those deeply mistaken views Americans have about themselves.

> The idea that the US is somehow unique diverse is one of those deeply mistaken views Americans have about themselves.

I didn't say we were uniquely diverse, I just said we were religously diverse. Big difference. If you're going to shit on someone, at least shit based on accurate information, otherwise you make yourself look like a pretentious asshole.

> Partly this seems to depend on the region – in the US, in particular, it seems to be a big no-no

Having lived and worked in the US my entire life at various companies all over the country, religion is a huge factor in whether people take offense to it. It's not the only factor, but it is a significant one, I would guess the most significant one. Unless you have data showing otherwise, I would think you'd give my opinion at least some weight, but maybe thinking they have superior knowledge about US culture is one of those deeply mistaken views that Europeans have about themselves.

> Partly this seems to depend on the region – in the US, in particular, it seems to be a big no-no

So if it's not religion, then what is it?

Re: Don't fuck with paste

#363

I use Hammerspoon for Mac, have a shortcut set up for Cmd+Shift+V to actually type the letters rather than use the paste function. Works every time someone pulls this stunt. > hs.hotkey.bind({"cmd", "shift"}, "V", function() hs.eventtap.keyStrokes(hs.pasteboard.getContents()) end)

> have a shortcut set up for Cmd+Shift+V to actually type the letters Seems like this would be hard to "google"... can you provide a guide or a link to a guide on how to accomplish this?

Maybe try googling the very easy to google for "Hammerspoon" and the guide would literally just be the comment you are replying to.

Re: Don't fuck with paste

#364

Blame ACH. It’s a putrid protocol that is far easier to get wrong than right. Once that daily file is pushed it’s a dozen people’s time to hope to fix a failed transaction, and there is no guarantee that the money will stay where it wasn’t meant to go. It’s one of those things the leaves you feeling “this needs to be better” yet it moves more money than almost any other means. All the upfront friction on users is to…

Upi fixes it, but has cultural resistance in the west.

UPI has no buyer protection and it's useless in the west because everyone here has credit cards

Re: Don't fuck with paste

#365

Has anyone else noticed that copy / paste on Mac OS / Firefox has become unreliable some time in the last 5 years? I don’t know if it’s Firefox or Mac OS but I’ve started finding it copied the wrong thing or ignored a copy command.

Your keyboard, or more specifically your Cmd key, is failing

Re: Don't fuck with paste

#366

I use Hammerspoon for Mac, have a shortcut set up for Cmd+Shift+V to actually type the letters rather than use the paste function. Works every time someone pulls this stunt. > hs.hotkey.bind({"cmd", "shift"}, "V", function() hs.eventtap.keyStrokes(hs.pasteboard.getContents()) end)

Thank you. I added this myself, but with option instead of shift (because cmd+shift+v already does "paste without formatting" iirc) like so:

    -- https://news.ycombinator.com/item?id=39640745
    hs.hotkey.bind({"cmd", "alt"}, "V", function()
      hs.eventtap.keyStrokes(hs.pasteboard.getContents())
    end)

Re: Don't fuck with paste

#367

Earlier quoted context omitted.

But it still doesn't seem to work on GitHub, did you whitelist GitHub for the preventDefault or is GitHub just a bit extra when it comes to hijacking keybinds?

It works sometimes on GitHub, it's just a bit extra as you said. GitHub is what annoyed me enough to make the feature in the first place. It used to work reliably but they made it worse :(

Ah bummers, but nonetheless thanks for implementing this feature!

EDIT: I just took a look at GitHub's source code, and they mentioned a setting to turn off these shortcuts, and it really exists!! Under https://github.com/settings/accessibility one can turn off, all "Character keys" which means shortcuts without a modifier. I've never used them, so I just disabled it, and now forward slash always opens the Firefox search :0

https://docs.github.com/en/get-started/accessibility/keyboar...

Re: Don't fuck with paste

#368
post #360

Earlier quoted context omitted.

Eh, European countries have diversity too. I've worked with religious extremists of all stripes over the years. The idea that the US is somehow unique diverse is one of those deeply mistaken views Americans have about themselves.

> The idea that the US is somehow unique diverse is one of those deeply mistaken views Americans have about themselves. I didn't say we were uniquely diverse, I just said we were religously diverse. Big difference. If you're going to shit on someone, at least shit based on accurate information, otherwise you make yourself look like a pretentious asshole. > Partly this seems to depend on the region – in the US, in par…

I reread this and I apologize, I feel I came off very harsh. I was a little irritated at being unfairly stereotyped as an American, and that got a little under my skin and caused me to be much more abrasive than I would normally think appropriate.

Re: Don't fuck with paste

#369
post #193

Earlier quoted context omitted.

I wish firefox would let the wonderbar '*' search feature work with bookmarklets... As it stands I have a few I'll never use because they're 4+ clicks away with no typeable shortcut.

You can define a keyword for this, eg. ctrl+l - `ks` (kill sticky) - enter. It has some backwards because you still can't search by name and you have to remember the keyword and there is no auto-complete, but once muscle memory gets used to it, it works pretty well. I use keywords for bang searches (!keyword search term) and bookmarklets too. - https://support.mozilla.org/en-US/kb/bookmarks-firefox#w_how...

I wasn't aware of 'keywords', thank you! Shame there's no completion / easy list (I think?) for things I'd rarely use, but I'll give it a try for a couple and add more progressively if it works well.

Re: Don't fuck with paste

#370

I use Hammerspoon for Mac, have a shortcut set up for Cmd+Shift+V to actually type the letters rather than use the paste function. Works every time someone pulls this stunt. > hs.hotkey.bind({"cmd", "shift"}, "V", function() hs.eventtap.keyStrokes(hs.pasteboard.getContents()) end)

Keyboard Maestro is also a fantastic app for this kind of stuff, and even adds a reasonable delay between keystrokes (something like 0.05 seconds) to prevent any weirdness.
Post reply on HN