3 ms·
I mean, with Xorg, just select and middle click. Am I missing something?
by smabie 6y ago
I mean, with Xorg, just select and middle click. Am I missing something?
- francislavoie 6y agoYes. It's not like every other app that exists on my system. Context switching is a nightmare. Stop shipping bad UX.
- moonchild 6y agoSelect+middleclick works with every app on your system.
- francislavoie 6y agoNo it doesn't, in a browser, middle-click will turn on drag to scroll, unless you click on a link in which case it will open a new tab. Which is something I use every day.
- moonchild 6y agoGrandparent said: > with Xorg The behaviour you describe only happens under windows.
- francislavoie 6y agoOkay you're right - but on Firefox on Linux which I just tried, middle click doesn't copy. It actually just does nothing.
- jrockway 6y agoI mean... it pastes, not copies. Selecting copies, middle clicking pastes. Someone has probably written a javascript widget that breaks it, but if it's a textarea or the URL bar, you can middle click to paste.
- francislavoie 6y agoSelecting most definitely does not copy. It would be horrendous if it did.
- mkl 6y agoSelecting in X absolutely does copy to the PRIMARY clipboard. Selecting then copying (e.g. with Ctrl-C) copies to the CLIPBOARD clipboard. Middle clicking pastes from the PRIMARY clipboard, and Ctrl-V pastes from the CLIPBOARD clipboard. It is incredibly useful, not horrendous. Edit: and you yourself confusedly claimed selecting copies just an hour ago: https://news.ycombinator.com/item?id=24017588 https://news.ycombinator.com/item?id=24017588
- francislavoie 6y agoI was talking about copy-on-select in terminals, i.e. terminals I no longer use cause I find that behaviour very frustrating.
- mkl 6y agoWell there's nothing special about terminals, it should work the same everywhere you can select text. It goes into a different clipboard from where explicit copying goes (though most modern distributions have a way to turn on synchronising of the two clipboards - maybe you have that on without realising?).
- smabie 6y agoIt 100% does. Every app, select copies to primary.
- mkl 6y agoMiddle click to paste only pastes when you're clicking in a place you can type input, like a text box or the URL bar. Just places Ctrl-V will paste. Middle clicking links to open new tabs works perfectly, as do other uses of middle click, like closing browser tabs.
- pmoriarty 6y agoIf the focus is not in a text field it doesn't make sense to paste. But if the focus is in a text field (where it actually makes sense to paste) in a web browser, then middle clicking does in fact paste, just like it does in every other sane X application.
- francislavoie 6y agoI understood the comment as middle-click would copy, not paste, because I was talking about copy behaviour primarily. Yes middle-click to paste does make sense in input fields.
- deleted 6y ago[deleted]
- lukevp 6y agoIt’s cognitive overhead to remember a different key for something as common as copy+paste. What if selection was holding down middle click and copying was right click? This keybind may seem easy for you but it is arbitrary and therefore hard to remember, and is non-standard. I struggle with different copy semantics across OSes and terminals all the time. It’s very frustrating.
- jasonjayr 6y agoThat's your cut buffer. Heavy/Traditional Xorg users have enjoyed + gotten used to the multiple clipboards available. [1] Users are migrating to Linux from Windows/MacOS and are not used to it; and asking for changes. (Remember Chrome + FF changing the selection behavior on the address bar to match windows?) [2] [3] [1] https://wiki.archlinux.org/index.php/Clipboard https://wiki.archlinux.org/index.php/Clipboard [2] https://bugs.chromium.org/p/chromium/issues/detail?id=26140 https://bugs.chromium.org/p/chromium/issues/detail?id=26140 [3] https://news.ycombinator.com/item?id=22832199 https://news.ycombinator.com/item?id=22832199
- smabie 6y agoI don't know what a cut buffer is is, but middle click copies to primary clipboard is the Windows style paste. I personally never really use clipboard, as using primarily is so much easier. I guess there might be using it at the same time, but I've personally never felt the need for two buffers at the same time.
- jasonjayr 6y agoI'm primarily an urxvt user: select copies & middle pastes. What terminal are you using that middle click is mapped to copy?
- smabie 6y agoSorry, i meant paste on middle click.
- owl57 6y ago> I've personally never felt the need for two buffers at the same time I find two buffers convenient when grabbing both url and title for a hyperlink.
- boring_twenties 6y agoI use both, but I admit it's a bit idiosyncratic. When immediately pasting after copying, the primary X buffer is obviously superior as it requires fewer actions, and only one hand. However, if I'm selecting something to keep in the buffer for a bit before pasting, I'd often screw myself by overwriting the buffer via random clicks in between. Now I'm in the habit of using primary in the cases when I know I already have an input field or prompt ready and waiting, and the very next thing I'm going to do is paste. When there are steps left to be performed after copy but before paste, I use the clipboard. I know it sounds overcomplicated and perhaps insane, but it's actually totally automatic at this point, and doesn't feel like it costs any mental cycles at all. For the first case, either I just readied the other program for input within the last few seconds, or at least it's visibly waiting for input on my screen. If not, then Ctrl+C it is.