Notion の 前のページ、次のページのショートカットキーを Karabiner-Elements で変更する

Notion に 前のページ次のページ に遷移するショートカットキーがある

別のショートカットキーに変えたくなったので Karabiner-Elements で設定を変更する

karabiner-elements.pqrs.org

~/.config/karabiner/karabiner.json に以下の JSON を追加して option + n , option + p で遷移できるようにした 1

                    {
                        "description": "notion cmd+shift+k",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "bundle_identifiers": [
                                            "^notion\\.id$"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "p",
                                    "modifiers": {
                                        "mandatory": [
                                            "option"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "k",
                                        "modifiers": [
                                            "control",
                                            "shift"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "notion cmd+shift+j",
                        "manipulators": [
                            {
                                "conditions": [
                                    {
                                        "bundle_identifiers": [
                                            "^notion\\.id$"
                                        ],
                                        "type": "frontmost_application_if"
                                    }
                                ],
                                "from": {
                                    "key_code": "n",
                                    "modifiers": {
                                        "mandatory": [
                                            "option"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "j",
                                        "modifiers": [
                                            "control",
                                            "shift"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    },

  1. 新しくどのショートカットキーを割り当てるかは個人のお好みで。Emacs でもよく使ってるキーに揃えた