News for hackers. Stuff that matters.
Re:Always paste without formatting on macOS by Ensorceled on Saturday November 04, 2023 @11:29AM (#38141941)
That and "drag selected text to random location". Who selects and drags blocks of code?
Re:Always paste without formatting on macOS by Waterluvian on Saturday November 04, 2023 @11:42AM (#38142057)
Are you talking about how code pasted in is never indented the way it originally was? It somehow adopts the indentation of the above line? I despise that.
Re:Always paste without formatting on macOS by eyelidlessness on Saturday November 04, 2023 @11:59AM (#38142242)
I don’t think they were talking about that. But since you mentioned it, if you (or anyone else bothered by this) use VSCode, you can often just undo (first time undoes auto-indent if it was performed, second undoes paste). Sure it’s annoying, but at least for me it’s become so automatic I hardly notice it anymore.
Re:Always paste without formatting on macOS by discard124 on Saturday November 04, 2023 @11:35AM (#38142000)
I do.
Re:Always paste without formatting on macOS by tomjakubowski on Saturday November 04, 2023 @11:45AM (#38142095)
I just learned this was possible the other day and I've been using it all the time since
Re:Always paste without formatting on macOS by freedomben on Saturday November 04, 2023 @11:57AM (#38142224)
Seriously, when that rolled out decades ago it was one of the dumbest things and still gets me. I always want to start a selection on the text. Dragging the text somewhere else never does what I want it to and I end up having to copy/paste anyway
Re:Always paste without formatting on macOS by kajic on Saturday November 04, 2023 @12:57PM (#38142827)
And yet lists of things often allow dragging of individual items to rearrange them. I wonder if thinking of paragraphs of text, and perhaps even sentences, in a similar way might make the dragging of text feature more appealing (I also dislike it).
Re:Always paste without formatting on macOS by Ensorceled on Saturday November 04, 2023 @05:51PM (#38145551)
Yeah, if it was code blocks, I still wouldn’t use it but it wouldn’t seem ludicrous.
Re:Always paste without formatting on macOS by callalex on Saturday November 04, 2023 @12:49PM (#38142752)
Many computer users have a hard time with invisible concepts. Copy and Cur put text away in some invisible buffer that some people don’t get, so dragging text works better for them.
Re:Always paste without formatting on macOS by rurp on Saturday November 04, 2023 @02:27PM (#38143788)
I would love a way to disable drag and drop behavior globally. I absolutely never want to use it, but it's easy to accidentally trigger it.
Re:Always paste without formatting on macOS by positus on Saturday November 04, 2023 @02:47PM (#38143966)
I do this in nvim. After making a visual selection I hold alt/option/meta and use j+k to move it up and down as a block. It's been helpful a few times when reorganizing things as I write them.
Re:Always paste without formatting on macOS by Angostura on Saturday November 04, 2023 @03:36PM (#38144371)
I do use it occasionally but quite often if I’ve put text into the wrong field of a form. On Mac I quite often make text clippings by dragging text to the desktop
Re:Always paste without formatting on macOS by hn_acker on Saturday November 04, 2023 @04:25PM (#38144782)
When I'm using my browser, I select and drag text from the page to the tabs section of the browser window to open a new tab which queries my search engine using the text (unless the text was a URL, in which case the new tab goes to the URL). I could copy, open a new tab, paste, and press enter in some cases, but that opens a tab to the right of all other tabs, when sometimes I want my new search tab to be in a different position.

However, I would appreciate a setting that would let me arbitrarily switch between dragging vs reselecting already selected text.

Re:Always paste without formatting on macOS by lxgr on Saturday November 04, 2023 @04:41PM (#38144916)
Me, all the time, but mostly across applications and not within single documents.

Sometimes because I want to keep what’s in my clipboard already; other times because it’s sensitive enough data that I don’t necessarily trust all running applications with (the threat primarily being an application incidentally logging/persisting it as part of some “helpful” feature, not outright malware).