From 08969aa8658d4793bc6267d52eb2b5ea757b0c1e Mon Sep 17 00:00:00 2001 From: Nicholas Novak <34256932+NickyBoy89@users.noreply.github.com> Date: Mon, 3 Jun 2024 21:41:29 -0700 Subject: [PATCH] change: Fixed the arrow keys by word shortcut mapping --- .../correct_terminal_keybindings.json | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) 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" + } + ] } ] }