Enter to open a file in Finder

102

22

I find the Cmd + O shortcut to open a file in Finder unintuitive. Does anyone know how to change it? I'd like to set it so that enter opens a file instead of going into rename mode.

rz.

Posted 2009-10-22T18:33:55.140

Reputation: 1 182

2Very usefull comment, thank you for your contribution! – EvilTorbalan – 2016-03-01T00:08:32.110

2Apple spent millions of dollars researching to find out that people rename files precisely 17.8 times more often than they open a file while using finder. Why would you want to double the number of clicks for that all-important rename feature? – Scott Biggs – 2018-04-11T08:35:09.400

@Scott Biggs: Rename is possible by selecting the folder with the mouse cursor and then clicking once on the name of the file/folder using the cursor (Same as in Windows OS) – firstpostcommenter – 2019-08-01T07:51:27.980

@Scott Biggs, could you give a source for that? This is interesting, never thought this odd choice of a shortcut would be backed by research. – Spidey – 2019-10-28T09:59:33.260

Answers

69

I'm not sure that's possible or recommended given that it is a basic function of the Finder. Keep in mind that Cmd-Down also opens the file if that is any more intuitive.

Paulo

Posted 2009-10-22T18:33:55.140

Reputation: 1 400

9Both Cmd+Down and Cmd+O are extremely uncomfortable to use compared to pressing the 'Enter' key when navigating files with keyboard. – YemSalat – 2015-01-16T01:02:42.713

1Downvoting because it's not only possible to change the behavior, but also that I do recommend changing it - See @Russell Davis' solution as just one example - TY for attempted answer however – sean2078 – 2015-09-16T00:16:55.023

While a sane person wouldn't do what I suggest in my answer, Enter can be used as a shortcut. It "just" requires manual editing of plist files in ~/Library/Preferences. – Daniel Beck – 2011-01-25T12:22:25.673

Surprisingly, I set Enter for the Zoom window menu item and forgot all about it. At least Safari works beautifully with it -- entering URLs still works. – Daniel Beck – 2011-01-25T13:39:16.747

2Also good to know:

Cmd+Right Arrow: to expand collapsed folder in Finder |

Cmd+Left Arrow: to collapse expanded folder in Finder |

Cmd+Up Arrow: Go to the parent folder of the current file\folder – RaamEE – 2011-06-21T07:57:39.437

I was searching for something like this and came across this thread. Big tanks to Paulo. I was starting to get uncomfortable with constantly having to double click files that I want to open as opposed to the Enter key on Windows. – Registered User – 2011-11-25T03:21:24.687

3Could the person that down-voted this please do the courtesy of explaining why? Sometimes an answer to a question is indeed 'no'. It's a valid answer. Keyboard preferences doesn't let you override "enter" so I was offering an alternative. – Paulo – 2009-10-22T20:28:23.180

29

Use KeyRemap4MacBook (despite the name, it works on all Macs). In the Change Key section, navigate to For Applications, then Enable at only Finder, then check Return Key Opens a file.

Note: This is a free app that basically does the same as the commercial apps mentioned in Daniel's answer. It has the same limitations regarding pressing Return in other contexts inside Finder.

Russell Davis

Posted 2009-10-22T18:33:55.140

Reputation: 1 124

2For anyone coming in via google search, this software is called Karabiner now, and rocks. – Bajal – 2016-11-11T17:28:25.870

2This is called "Karabiner Elements" now, go to "complex modifications" > "add rule" > "import from internet" > search for "finder". – Epskampie – 2018-01-10T16:08:15.870

Nice. (Though I wouldn't use it as I like all computers I use to work the same, and like to be able to work with any Mac.) – Arjan – 2011-11-18T23:25:51.560

Does it work properly, i.e. without the problems I mention in the first part of my answer? – Daniel Beck – 2011-11-19T06:12:18.580

1@Daniel, it has the same limitations as you mention -- in fact, the UI warns "use F2 to rename but caution not to use Return when done typing or file opens". – Russell Davis – 2011-11-19T06:43:03.033

that software rocks - so useful for running windows VM scenarios. – Adam Tuliper - MSFT – 2012-01-03T03:48:29.310

21

This behavior is not just intended by Apple, it's forced.

I was trying myself to circumvent it by redefining the shortcut in System Preferences > Keyboard > Keyboard Shortcuts > Application Shortcuts (which is a goldmine, you can use it to assign pretty much anything that exists in a regular or context menu in any program to whatever you want (such as F10 to create a folder in Finder, F5 for refreshing pages, etc. This is unique to OS X AFAIK, and it's bloody awesome!).

As it turns out, you cannot assign the enter key alone to any action. And even if you assign something close, like Option+Enter, Finder will just ignore it. If you look in the drop-down, the Cmd+O shortcut is no longer listed there, and neither is Opt+Enter, it's just blank!

Hacks that used to work to get Finder to do things Apple don't think it's supposed to, are blocked with updates, like this hack to get folders listed before files, which was blocked with Lion: http://forums.macrumors.com/showthread.php?t=1411019

I've previously used PathFinder as I find the native Finder app to be extremely bad, but it's a paid app, and it doesn't integrate very nicely with the system IMO (running side-by-side with the native Finder, destroying the gesture for revealing the desktop so that it's just a blank wallpaper, etc.).

I've just come across XtraFinder ( http://www.trankynam.com/xtrafinder/ ), which is a free plugin for Finder. It's not as feature-filled as PathFinder or Total Finder, but as it's not an app but a plugin, it's much leaner and non-intrusive. It adds tabs, enter-to-open (with your choice of shortcut for renaming, e.g. F2), ordering folders before files, and much more.

It also adds the possibility to refresh the Finder view (which is a more than welcome addition if you've ever tried browsing a network share where a file just appear, yet there's no way to refresh Finder, so it doesn't pick it up until you restart the system (seriously!))

I think it's pretty cool, and it'll sort you out with regards to your problem :)

DanielSmedegaardBuus

Posted 2009-10-22T18:33:55.140

Reputation: 645

1Thanks for mentioning XtraFinder. It makes the 'Enter' and 'Backspace' keys work as you expect. – user45909 – 2015-01-29T05:41:25.107

with Sierra's latest update (Higher Sierra or something), XtraFinder is completely broken. What a shame it was a wonderful app. – PatrickT – 2018-01-15T17:59:06.507

I've been using Path Finder for years. But they are experiencing many very bad bugs with High Sierra. It's getting to the point that I may have to switch from using what had been an excellent product. (It's possible that Apple may have made changes intentionally to cause Path Finder problems--wouldn't put it past 'em.) – Scott Biggs – 2018-04-11T08:39:22.290

XtraFinder has been revived, and is now available all the way up to the current Mojave. It does come with less functionality than the old version, but still great! – DanielSmedegaardBuus – 2019-02-21T14:14:35.957

16

I am a new Mac user (switched from Windows) and I found Command+ to be extremely unintuitive to open a file (Why would it be anything except Enter/Return?).

I Use BetterTouchTool to manage my keyboard shortcuts and set it to trigger the Command+ shortcut when I press Enter in Finder. That did it for me (you have to note that by doing this, you cannot use Enter for anything else in Finder, which is fine by me).

enter image description here

TheWeldmeister

Posted 2009-10-22T18:33:55.140

Reputation: 161

9

You can use XtraFinder (free, Mac OS X 10.6.8 to 10.10):

enter image description here

Franck Dernoncourt

Posted 2009-10-22T18:33:55.140

Reputation: 13 518

Sadly not working anymore after Sierra's latest update... – PatrickT – 2018-01-15T18:01:12.077

6

It is possible using third party software, because they intercept keystrokes before they arrive at the frontmost application.

Using Butler I was able to define a Keystrokes item that presses Cmd-Down whenever the hot key Return is pressed only in Finder. For a more detailed description, see this somewhat related answer.

The problem is similar to the other answer's:

A significant downside to this sledge-hammer-solution: You cannot ever press return in Finder to have it mean something else. Committing changes to a Get Info dialog to rename something, or triggering a dialog's default button: Return is not going to work.


It is definitely not possible using system methods.

Using System Preferences » Keyboard » Keyboard Shortcuts » Applications I defined a shortcut so that Return triggered the Open menu item (with some manual editing of plist files, it's possible):

Return still triggers renaming.

Even using a Service* to trigger the action won't work:

  • Shortcuts for application specific services are configured the same way as custom shortcuts to regular menu items
  • Shortcuts in .GlobalDomain.plist for all applications don't work either. I tried.

Daniel Beck

Posted 2009-10-22T18:33:55.140

Reputation: 98 421

This answer deserves more upvotes. There's a free third party app, KeyRemap4MacBook, that will do this as well (see my answer for more details). – Russell Davis – 2011-11-18T22:36:51.067

6

Karabiner is yet another alternative to remap the return key, along with pretty much any other key you might want: https://pqrs.org/osx/karabiner/

You can remap keys, change repeat rate, customize the menu bar, and other functions.

enter image description here

dkv

Posted 2009-10-22T18:33:55.140

Reputation: 161

2The linked page isn't working for me right now, which is a perfect example of why link-only answers are discouraged. Please add more information to your answer so the answer itself is useful, even if the link breaks or the site it points to is down. – David Richerby – 2015-05-19T08:19:42.007

1"We made new Karabiner as Karabiner-Elements-11.0.0 from scratch due to kernel architecture changes in macOS Sierra." Way to go! – PatrickT – 2018-01-15T18:26:06.127

3

I can confirm that at time of writing (Sept. 9, 2012), PresButan v1.4 does exactly this for OSX Lion. (Please comment if anyone can confirm support for Mountain Lion.)

PresButan: An idiotically named solution to a spectacular UI oversight (rather apropos, eh?). It also lets you use either the backspace or delete key to delete files.

I can confirm it works (just installed it). Apparently it leverages the accessibility system and uses a daemon to catch the return events.

If you are on 10.3-10.5, you also have the option of using ReturnOpen.

-- @Fake Name via Apple StackExchange site: Open Folder with Enter in Finder

alanning

Posted 2009-10-22T18:33:55.140

Reputation: 181

1

Could you use this method to add an action for the Finder application?

Keyboard prefs > keyboard shortcuts tab > +

Sam

Posted 2009-10-22T18:33:55.140

Reputation: 477

0

You can't do it. "Enter" or "Return" aren't single key options, you have to have a modifier. Probably why pressing enter or return doesn't open the file in the first place, because the way the system is set up actions need a modifier key.

Josh K

Posted 2009-10-22T18:33:55.140

Reputation: 11 754

1the way the system is set up actions need a modifier key — but then why would Return without any modifier trigger file renaming? – Arjan – 2011-11-18T23:23:44.870

@Arjan: No idea. – Josh K – 2011-11-19T00:21:31.427

1So, I mean: then the system is not set up in a way that actions need a modifier key? Sorry for bugging you with such an old post ;-) Ah, or maybe you're referring to the System Preferences for keyboard, when mentioning "actions"? – Arjan – 2011-11-19T09:00:09.357

2@Arjan I'm actually not sure what I meant. This is such an old post I can't even remember answering it. – Josh K – 2011-11-22T18:14:57.553

0

This might probably help you:

http://forums.macosxhints.com/archive/index.php/t-31633.html

Also have a look at ReturnOpen.

jrara

Posted 2009-10-22T18:33:55.140

Reputation:

@Bobby Why did you remove the ReturnOpen reference? While "google it" isn't that useful, you could have inserted a direct link to it. – Daniel Beck – 2011-01-25T12:39:30.787

@Daniel Beck: True, mea culpa. – Bobby – 2011-01-25T18:41:41.660

ReturnOpen no longer works for Mac OS X 10.6. I suspect it's just an application automating what I described as not (no longer) working in my answer. – Daniel Beck – 2011-01-25T18:44:02.577