diff --git a/karabiner/.config/karabiner/assets/complex_modifications/correct_terminal_keybindings.json b/karabiner/.config/karabiner/assets/complex_modifications/correct_terminal_keybindings.json index 6628d2a..00dfa45 100644 --- a/karabiner/.config/karabiner/assets/complex_modifications/correct_terminal_keybindings.json +++ b/karabiner/.config/karabiner/assets/complex_modifications/correct_terminal_keybindings.json @@ -53,6 +53,53 @@ "type": "basic" } ] + }, + { + "description": "Remap Alt+Left/Right unless in terminal", + "manipulators": [ + { + "conditions": [ + { + "type": "frontmost_application_unless", + "bundle_identifiers": ["^net\\.kovidgoyal\\.kitty$"] + } + ], + "from": { + "key_code": "left_arrow", + "modifiers": { + "mandatory": ["control"] + } + }, + "to": [ + { + "key_code": "left_arrow", + "modifiers": ["option"] + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "type": "frontmost_application_unless", + "bundle_identifiers": ["^net\\.kovidgoyal\\.kitty$"] + } + ], + "from": { + "key_code": "right_arrow", + "modifiers": { + "mandatory": ["control"] + } + }, + "to": [ + { + "key_code": "right_arrow", + "modifiers": ["option"] + } + ], + "type": "basic" + } + ] } ] }