Fix mac keybindings: ctrl(+shift)+backspace now works for word deletion

in both directions. Aerospace doesnt have conflicting keybindings
anymore.
This commit is contained in:
Martin Larsson 2025-07-14 01:04:11 +02:00
parent 49a2249634
commit d9dabcd655
2 changed files with 69 additions and 33 deletions

View file

@ -120,9 +120,8 @@ cmd-shift-c = 'reload-config'
cmd-shift-f = 'fullscreen' cmd-shift-f = 'fullscreen'
cmd-shift-v = 'layout h_tiles' cmd-shift-v = 'layout h_tiles'
cmd-shift-h = 'layout v_tiles' cmd-shift-s = 'layout v_tiles'
cmd-shift-t = 'layout h_accordion' cmd-shift-t = 'layout h_accordion'
cmd-shift-s = 'layout v_accordion'
[[on-window-detected]] [[on-window-detected]]
if.app-id = 'org.qutebrowser.qutebrowser' if.app-id = 'org.qutebrowser.qutebrowser'

View file

@ -27,7 +27,7 @@
"from": { "from": {
"key_code": "h", "key_code": "h",
"modifiers": { "modifiers": {
"mandatory": ["control"], "mandatory": ["fn"],
"optional": ["any"] "optional": ["any"]
} }
}, },
@ -59,7 +59,7 @@
"from": { "from": {
"key_code": "j", "key_code": "j",
"modifiers": { "modifiers": {
"mandatory": ["control"], "mandatory": ["fn"],
"optional": ["any"] "optional": ["any"]
} }
}, },
@ -91,7 +91,7 @@
"from": { "from": {
"key_code": "k", "key_code": "k",
"modifiers": { "modifiers": {
"mandatory": ["control"], "mandatory": ["fn"],
"optional": ["any"] "optional": ["any"]
} }
}, },
@ -123,7 +123,7 @@
"from": { "from": {
"key_code": "l", "key_code": "l",
"modifiers": { "modifiers": {
"mandatory": ["control"], "mandatory": ["fn"],
"optional": ["any"] "optional": ["any"]
} }
}, },
@ -183,6 +183,43 @@
] ]
} }
] ]
},
{
"description": "Control+Backspace → Option+Backspace (word deletion)",
"manipulators": [
{
"from": {
"key_code": "delete_or_backspace",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": ["option"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "delete_or_backspace",
"modifiers": {
"mandatory": ["control", "shift"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": ["option", "shift"]
}
],
"type": "basic"
}
]
} }
] ]
}, },