Sequel Proを使ってCtrl+hでMySQLのHelpが開くのが辛すぎた
Karabinerを使う
以下のファイルを ~/.config/karabiner/assets/complex_modifications/sequelpro.json
に配置してComplex modificationsから有効化すると吉
{
"title": "sequelpro",
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.sequelpro\\.SequelPro"
]
}
],
"rules": [
{
"description": "Ctrl+h to Backspace in SequelPro",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "delete_or_backspace"
}
]
}
]
}
]
}
参考:
- https://matsuoshi.hatenablog.com/entry/2019/01/24/000000
- https://github.com/JoshuaManuel/Karabiner-Elements-Key-List