News for hackers. Stuff that matters.
Re:So Long, Macbook. Hello Again, Linux by ad_hominem on Thursday January 10, 2019 @11:47AM (#18875294)
> On a Mac, you can cut/copy/paste using predictable keystrokes in any application, anywhere

Interesting, because Linux is my daily driver, and when I borrow my spouse's MacBook one of the things I get tripped up on is some programs seem to use Ctrl+C/V and other programs use Command+C/V for copying/pasting

Re:So Long, Macbook. Hello Again, Linux by atombender on Thursday January 10, 2019 @11:59AM (#18875447)
All Mac apps use the Command (⌘) key for copy/paste.

I've never encountered an app that uses Ctrl. A developer would really have to go out of their way to accomplish this in their app, since the copy/paste menus are provided by Cocoa; the keyboard shortcuts are essentially built into the OS.

Re:So Long, Macbook. Hello Again, Linux by ad_hominem on Thursday January 10, 2019 @02:13PM (#18876986)
Actually I was misremembering. I was thinking of the Terminal app and having to use Ctrl+A/E to go to beginning/end of line. But jumping words uses Alt+arrow keys. And copy/paste is Cmd+C/V. I find the mixing of the modifier keys really unintuitive as a Mac noob.
Re:So Long, Macbook. Hello Again, Linux by Aloha on Thursday January 10, 2019 @12:21PM (#18875706)
Unless they're X11 apps, those use whatever they feel like.
Re:So Long, Macbook. Hello Again, Linux by atombender on Thursday January 10, 2019 @12:37PM (#18875913)
Of course — the same can be said for terminal programs or Windows apps run via virtualization. Those are not "Mac apps".
Re:So Long, Macbook. Hello Again, Linux by doubleunplussed on Thursday January 10, 2019 @02:17PM (#18877022)
But at this point the situation is the same as on linux. I've never encountered anything on linux that didn't use ctrl-c for copy other than terminal apps.
Re:So Long, Macbook. Hello Again, Linux by pseudalopex on Friday January 11, 2019 @12:58AM (#18881327)
The situation on macOS is that you can copy text from Terminal the same way you copy text from Safari. You can edit text in iTunes the same way you edit text in your shell.
Re:So Long, Macbook. Hello Again, Linux by doubleunplussed on Sunday January 13, 2019 @01:30PM (#18897943)
Sure. So each platform has different exceptions, but my point was they both have exceptions. The terminal is an exception on linux, but not on macOS. Other apps are apparently exceptions on MacOS, but those same ones probably aren't exceptions on Linux. The exact apps are different but the overall situation is the same.
Re:So Long, Macbook. Hello Again, Linux by pseudalopex on Sunday January 13, 2019 @09:31PM (#18900174)
Using a terminal on Linux is common. Using X11 on macOS is not.
Re:So Long, Macbook. Hello Again, Linux by enedil on Thursday January 10, 2019 @06:32PM (#18879571)
so what is a "Mac app"?
Re:So Long, Macbook. Hello Again, Linux by atombender on Thursday January 10, 2019 @06:37PM (#18879600)
A GUI program that uses native APIs to display windows and menus.
Re:So Long, Macbook. Hello Again, Linux by BlackFingolfin on Thursday January 10, 2019 @11:59AM (#18875448)
Interesting, I don't know a single program on OS X which supports Ctrl+C/V for copy&paste but does not support Command+C/V (indeed, I know only a tiny set of programs that support Ctrl-C/V at all, mostly cross platform software that is badly adapted to OS X).

Out of curiosity, could you name an example or two?

Re:So Long, Macbook. Hello Again, Linux by ad_hominem on Thursday January 10, 2019 @02:05PM (#18876893)
Actually I was misremembering. I was thinking of the Terminal app and having to use Ctrl+A/E to go to beginning/end of line. But jumping words uses Alt+arrow keys. And copy/paste is Cmd+C/V. I find the mixing of the modifier keys really unintuitive as a Mac noob.
Re:So Long, Macbook. Hello Again, Linux by dimfeld on Thursday January 10, 2019 @12:14PM (#18875618)
One example I’ve found is the trading software for Interactive Brokers. It’s a Java application with mostly custom (and fairly clunky) UI, and it has other Windows-isms like adding an icon to the desktop when you install it.
Re:So Long, Macbook. Hello Again, Linux by pdpi on Thursday January 10, 2019 @11:55AM (#18875406)
Wait what?

What programs are you using that use Ctrl for clipboard actions? Do they also allow their Cmd equivalents, or are they just using the wrong keys?

Re:So Long, Macbook. Hello Again, Linux by carlmcqueen on Thursday January 10, 2019 @12:16PM (#18875651)
I've only see this in parallels when using a windows application.

So if you have windows office because it has traditionally been better than the one offered to mac you'd have to remember to use control instead of command.

Re:So Long, Macbook. Hello Again, Linux by pseudalopex on Thursday January 10, 2019 @01:02PM (#18876211)
VMware Fusion even translates the macOS shortcuts.
Re:So Long, Macbook. Hello Again, Linux by duncanawoods on Thursday January 10, 2019 @12:34PM (#18875866)
inkscape

(runs under x11, does not support cmd-c/v)

Re:So Long, Macbook. Hello Again, Linux by jeena on Thursday January 10, 2019 @12:11PM (#18875589)
As far as I remember, Terminal, iTerm2.
Re:So Long, Macbook. Hello Again, Linux by pdpi on Thursday January 10, 2019 @12:18PM (#18875662)
Just double checked — neither iTerm not Terminal allow the Ctrl modifier for clipboard operations. In fact, terminal applications are _precisely_ the applications I use to argue that Cmd-X/C/V is overall nicer, as they don't interfere with the usual meaning of the Ctrl modifier as a way to produce control characters (which are especially useful in the context of a terminal)
Re:So Long, Macbook. Hello Again, Linux by jeena on Thursday January 10, 2019 @05:07PM (#18878745)
Hm, perhaps you're right, it was some time ago I used a Mac, sorry for the confusion. There was something with Emacs also which was weird on the mac with modifier keys but I don't exactly remember what.
Re:So Long, Macbook. Hello Again, Linux by devonkim on Thursday January 10, 2019 @01:01PM (#18876205)
Ctrl would be an artifact of a port from another platform because Ctrl is closer to a Meta key on a Mac (Option is closest to Alt from a PC though). Command is the generally accepted one though. I can’t think of anything that uses Ctrl-based stuff on a Mac besides possibly IntelliJ and that’s only with PC compatibility keybinds enabled.