News for hackers. Stuff that matters.
Re:macOS Sequoia is available today by JoBrad on Monday September 16, 2024 @04:50PM (#41560727)
I never understood the enter for rename shortcut. People open (or "execute", which is the general understanding of the action for the "enter" key) files far more than they rename them.
Re:macOS Sequoia is available today by jwells89 on Monday September 16, 2024 @05:14PM (#41560996)
It makes sense if one considers the angle of how single-key shortcuts are much more disaster-prone.

For example, if the user has a large number of files selected and accidentally triggers the open shortcut by hitting enter, their computer is going to be stuck spinning its wheels for a while (the more files involved and the heavier the applications they open in, the worse it'll be) unless they force restart. Involving a modifier key filters for intention pretty well, and so while this scenario is possible with ⌘O, it's far less likely.

Most Mac shortcuts seem to follow this, with those that are single-key by default doing relatively harmless and easily reversible things.

Re:macOS Sequoia is available today by tivert on Monday September 16, 2024 @05:28PM (#41561148)
> It makes sense if one considers the angle of how single-key shortcuts are much more disaster-prone.

> ...

> Most Mac shortcuts seem to follow this, with those that are single-key by default doing relatively harmless and easily reversible things.

The enter-to-rename behavior has been in Mac OS since near the beginning, when versions were just named something like "System N.M").

IIRC, I've heard they had very detailed UI design documents back then, that explained their choices (e.g. I've heard they explained the reason for the menu bar being at the top of the screen rather than the top of a window was the cursor will just stop there, requiring less mousing precision).

So if that's the case, there should be documents confirming or denying your speculation.

Re:macOS Sequoia is available today by int_19h on Monday September 16, 2024 @09:06PM (#41562930)
http://interface.free.fr/Archives/Apple_HIGuidelines.pdf

(you can compare to the current ones and similar docs for other platforms: https://en.wikipedia.org/wiki/Human_interface_guidelines)

Re:macOS Sequoia is available today by dkga on Monday September 16, 2024 @05:29PM (#41561149)
Thank you, now I finally understand why the difference between "enter" and cmd+O!
Re:macOS Sequoia is available today by Cockbrand on Monday September 16, 2024 @05:22PM (#41561079)
The Mac didn’t have a CLI in the first 16 years or so, so there’s no traditional “execute” meaning for the Enter key. I’d argue that the thought here was that by pressing that key, you’d want to enter a new name for the selected file.
Re:macOS Sequoia is available today by hoistbypetard on Monday September 16, 2024 @05:37PM (#41561222)
That's not a bad thought, but traditiona Mac keyboards didn't even have an "enter" key. (And nor do their current tenkeyless ones.) They just had a "return" key. The "enter" key only came around when the 10-key numpad was introduced, and it gave a different key code than the return key (which lives/lived where "enter" lives on PC keyboards).

I don't recall whether "enter" renamed files, and I can't check whether it does at the moment because all my mac keyboards within reach are tenkeyless, but "return" always has.

Re:macOS Sequoia is available today by mrkstu on Monday September 16, 2024 @06:08PM (#41561577)
Just checked- both 'enter' and 'return' active the rename action.