Karabiner-elements: Finder return/enter to open file

Created on 14 May 2017  路  8Comments  路  Source: pqrs-org/Karabiner-Elements

One of the main reason I use karabiner is to map return/enter to open file instead of renaming the files. There was option to remap it in Karabiner, but I cannot find the same option in Karabiner-Elements.

I saw that I can remap return/enter but i can only remap it to another single key. If it provides multiple key mapping, i could map it with cmd + o to open the file. But then again, there is no such option and if there is, I want it to work only on Finder, like how it used to be on Karabiner.

Am I overlooking some options, or this feature hasn't been implemented or will it be implemented in near future?

stale

Most helpful comment

Try the "Finder" setting under this link:
https://pqrs.org/osx/karabiner/complex_modifications/#application_specific

I modified mine to use F2 for renaming, to match Windows:

                    {
                        "description": "Use Return as Open and Use F2 as Rename",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "bundle_identifiers": [
                                            "^com.apple.finder"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "f2"
                                },
                                "to": [
                                    {
                                        "key_code": "return_or_enter"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "bundle_identifiers": [
                                            "^com.apple.finder"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "return_or_enter"
                                },
                                "to": [
                                    {
                                        "key_code": "o",
                                        "modifiers": [
                                            "right_command"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    }

All 8 comments

Use keypad_enter as mentioned in #475

Thanks for your info. I tried remapping the return_or_enter to keypad_enter. But it didn't work in Finder. I still got to the renaming file option. Even though the Event-Viewer shows that it's been replaced by keypad_enter

Sorry, you're right. keypad_enter does work as requested with Path Finder, but not with Finder. I didn't notice because I use the former.

Did you find one for Finder after all?

Try the "Finder" setting under this link:
https://pqrs.org/osx/karabiner/complex_modifications/#application_specific

I modified mine to use F2 for renaming, to match Windows:

                    {
                        "description": "Use Return as Open and Use F2 as Rename",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "bundle_identifiers": [
                                            "^com.apple.finder"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "f2"
                                },
                                "to": [
                                    {
                                        "key_code": "return_or_enter"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "bundle_identifiers": [
                                            "^com.apple.finder"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "return_or_enter"
                                },
                                "to": [
                                    {
                                        "key_code": "o",
                                        "modifiers": [
                                            "right_command"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    }

Thanks for your comment. It actually works.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Try the "Finder" setting under this link:
https://pqrs.org/osx/karabiner/complex_modifications/#application_specific

I modified mine to use F2 for renaming, to match Windows:

                    {
                        "description": "Use Return as Open and Use F2 as Rename",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "bundle_identifiers": [
                                            "^com.apple.finder"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "f2"
                                },
                                "to": [
                                    {
                                        "key_code": "return_or_enter"
                                    }
                                ],
                                "type": "basic"
                            },
                            {
                                "conditions": [
                                    {
                                        "bundle_identifiers": [
                                            "^com.apple.finder"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "return_or_enter"
                                },
                                "to": [
                                    {
                                        "key_code": "o",
                                        "modifiers": [
                                            "right_command"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    }

Hi! Could you please help me with remapping delete key to match "return to previous folder" as in Windwods? Thanks!

Was this page helpful?
0 / 5 - 0 ratings