Don't touch my clipboard
291–300 of 322 posts
Re: Don't touch my clipboard
#292Earlier quoted context omitted.
Having multiple almost identical ways of achieving things is a bug magnet in programming languages. Differing programmers will presumably use different styles (why else even support differences?), and if you mix code like that, bugs ensue. This a hassle not just because autoformatters are liable to make churny changes (which distract from real changes, which makes history harder to understand: bug magnet), but also b…
Many programming languages, certainly not all, offer single and double-quoted strings already. Which is, granted, a perennial source of annoyance for those of us trying to have a consistent formatting style. I want «guillemet strings» because they use a matched pair, so you can «quote a string «within a string» without escaping» and I think that's a nice property. I'm not really interested in supporting all the forms…
Re: Don't touch my clipboard
#293The wrongest thing about this, from my perspective, is that my browser fires off a js 'copy' event when I press control-c. There are times when I've found it helpful that a browser can copy text to my clipboard when I click a button, but I can't think of a single time when I want a site to react to my attempt to copy text off if it. Is there any way to configure my user agent (Firefox) not to do this? A hack is ok.
Even that won't totally save you. While you can't do exactly this, you can sure get the fun experience of the user getting text they didn't expect in the clipboard when copying without any JS at all. Text is highlighted on the page based on the code order, not as it appears on-screen (at least in Firefox and Chrome). If you throw elements off-screen with some CSS, you can create a big disparity between what the user…
Re: Don't touch my clipboard
#294The wrongest thing about this, from my perspective, is that my browser fires off a js 'copy' event when I press control-c. There are times when I've found it helpful that a browser can copy text to my clipboard when I click a button, but I can't think of a single time when I want a site to react to my attempt to copy text off if it. Is there any way to configure my user agent (Firefox) not to do this? A hack is ok.
There's the "dom.event.clipboardevents.enabled" preference, which you can set to false in about:config. I don't know whether that's planned to stick around or whether it was added when the clipboard event support was still experimental and will be removed at some point. But I suspect the former, for precisely the reasons in this thread. Note that disabling these events will likely break "smart" copy/paste in things l…
Re: Don't touch my clipboard
#295It's fine. This is just stupidity dressed as on-purpose bad UX. Yes, I consider whoever makes that decision ("Yeah, we should totally make it not do what the user wanted it to do!") utterly stupid, and a sad presence in the gene pool. There are file management apps, graphic design apps (figma), etc., that use both the clipboard and the / binds to work. Neither blocking the bind of events, nor of the clipboard are goi…
Re: Don't touch my clipboard
#296Earlier quoted context omitted.
MS Word will autocorrect two hyphens into either an en dash or an em dash based on what it believes you were trying to type. So this: "em--dash" becomes this: "em—dash" while this: "en -- dash" becomes this: "en – dash"
En dashes are for ranges and sometimes for compound modifiers, like "billiard-ball–size hail" or "New York City–based attorney." Not sure who advised MS Word to turn two dashes into an en dash, ever, but it's not correct. Whether an em dash has spaces around it is a matter of style.
Re: Don't touch my clipboard
#297Earlier quoted context omitted.
Specifically, things like copying a cell of data in Google Sheets for example.
Copying from HTML tables is already sane.
Re: Don't touch my clipboard
#298Earlier quoted context omitted.
Curious to know how you recover from that? How do you what permissions to assign back to files and directories?
It's a pain-and-a-half. I'm not sure any system ever recovers fully, but you basically run chmod -R's on most of the important directories and then fix the many services that will surely fail once you can get a shell. More specifically, I used a bunch of these links until I could get a shell, then manually-fixed the rest. https://askubuntu.com/questions/308939/how-to-reset-default-... https://askubuntu.com/questions/…
Re: Don't touch my clipboard
#299Earlier quoted context omitted.
> aren't even the ASCII quote character; you get horrid unicode quotes Why should they be ASCII, and what’s wrong with Unicode?
Because the next step when you face this problem is doing a search-replace of the quotes to remove them. ASCII quotes are on your keyboard, so you can actually type the command to remove them. Unicode quotes probably aren't, so it's extra annoying to remove them, and they're not even the same character for start and end so you have to do it twice. The time spent for removal is then vastly higher than with ASCII quote…
/"xnx
(or similar) in vim to delete the quotes on a multi-line block. Even that is annoying. But with the unicode quotes I have to do a bit more conscious searching, which is a distraction.Of course, the fact that the text is modified in any way is user-hostile. I don't mind re-typing a code example (since I'm trying to learn it), but I like to copy-paste sometimes (e.g. data literals).
I paid for a DRM-free ebook that's meant to be copy-pasted. We have a universal paradigm for how plaintext copy works. Apple charges a premium for good design. Ebook readers are generally supposed to get out of your way and let you focus on content. There is no reason for Apple Books to have this behavior.
Re: Don't touch my clipboard
#300Earlier quoted context omitted.
Wonder if an author will rename themself sudo rm -rf / with the proper escape codes.
`rm -rf ~` is disastrous enough on macOS with a bonus of not having to authentiacate sudo.
The command's intention is so obvious I wonder why there is no warning from the os, the shell program or the terminal for such, easily blacklist-able commands. Or is there?