Skip to content

Instantly share code, notes, and snippets.

@kazgoto
Last active December 24, 2024 02:00
Show Gist options
  • Save kazgoto/ac13c3b3d68dfe537040ebbca8f0ab10 to your computer and use it in GitHub Desktop.
Save kazgoto/ac13c3b3d68dfe537040ebbca8f0ab10 to your computer and use it in GitHub Desktop.
Emacs cursor keybinds for Superlist with Karabiner-Elements
{
"description": "Emacs cursor for Superlist",
"manipulators": [
{
"description": "ctrl-f",
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.superlist\\.superlist\\.app$"
]
}
],
"from": {
"key_code": "f",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
},
{
"description": "ctrl-b",
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.superlist\\.superlist\\.app$"
]
}
],
"from": {
"key_code": "b",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"description": "ctrl-a",
"type": "basic",
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"command"
]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.superlist\\.superlist\\.app$"
]
}
]
},
{
"description": "ctrl-e",
"type": "basic",
"from": {
"key_code": "e",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"command"
]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.superlist\\.superlist\\.app$"
]
}
]
},
{
"description": "ctrl-p",
"type": "basic",
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "up_arrow",
"modifiers": [
"command"
]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.superlist\\.superlist\\.app$"
]
}
]
},
{
"description": "ctrl-n",
"type": "basic",
"from": {
"key_code": "n",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "down_arrow",
"modifiers": [
"command"
]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.superlist\\.superlist\\.app$"
]
}
]
},
{
"description": "ctrl-d",
"type": "basic",
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "delete_forward"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.superlist\\.superlist\\.app$"
]
}
]
},
{
"description": "ctrl-k",
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"command",
"shift"
]
},
{
"key_code": "delete_forward"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.superlist\\.superlist\\.app$"
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment