Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save dantehemerson/b91071bff67fde91ab406b55ae934f0e to your computer and use it in GitHub Desktop.

Select an option

Save dantehemerson/b91071bff67fde91ab406b55ae934f0e to your computer and use it in GitHub Desktop.
Remap app switcher to Vim-like keys
{
"title": "Remap app switcher to Vim-like keys",
"rules": [
{
"description": "Remap app switcher to Vim-like keys",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "tab",
"modifiers": {
"mandatory": ["left_command"]
}
},
"to": [
{
"key_code": "tab",
"modifiers": ["left_command", "shift"]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.apple\\.switcher$"
]
}
],
"parameters": {
"basic.to_if_alone_timeout_milliseconds": 1000
},
"to_delayed_action": {
"to_if_canceled": [
{
"key_code": "h",
"modifiers": ["left_arrow"]
}
],
"to_if_invoked": [
{
"key_code": "l",
"modifiers": ["right_arrow"]
}
],
"to_if_timed_out": [
{
"key_code": "tab",
"modifiers": ["left_command", "shift"]
}
],
"to_delayed_action_delay_milliseconds": 500
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment