Skip to content

Instantly share code, notes, and snippets.

@sakatam
Created April 11, 2018 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakatam/15f5a045fb5cd01049eecf6327451b27 to your computer and use it in GitHub Desktop.
Save sakatam/15f5a045fb5cd01049eecf6327451b27 to your computer and use it in GitHub Desktop.
vim-ish arrow key mappings
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
"basic.simultaneous_threshold_milliseconds": 50,
"basic.to_delayed_action_delay_milliseconds": 500,
"basic.to_if_alone_timeout_milliseconds": 1000,
"basic.to_if_held_down_threshold_milliseconds": 500
},
"rules": [
{
"description": "Change Control+h/j/k/l to Arrows",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Change Shift+Control+h/j/k/l to Shift+Arrows",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"shift",
"left_control"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"shift",
"left_control"
]
}
},
"to": [
{
"key_code": "down_arrow",
"modifiers": [
"shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"shift",
"left_control"
]
}
},
"to": [
{
"key_code": "up_arrow",
"modifiers": [
"shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"shift",
"left_control"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Cmd+Control+h/j/k/l to Cmd+Arrows",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"command",
"left_control"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"command",
"left_control"
]
}
},
"to": [
{
"key_code": "down_arrow",
"modifiers": [
"command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"command",
"left_control"
]
}
},
"to": [
{
"key_code": "up_arrow",
"modifiers": [
"command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"command",
"left_control"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Cmd+Shift+Control+h/j/k/l to Cmd+Shift+Arrows",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"shift",
"command",
"left_control"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"shift",
"command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"shift",
"command",
"left_control"
]
}
},
"to": [
{
"key_code": "down_arrow",
"modifiers": [
"shift",
"command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"shift",
"command",
"left_control"
]
}
},
"to": [
{
"key_code": "up_arrow",
"modifiers": [
"shift",
"command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"shift",
"command",
"left_control"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"shift",
"command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Control+f/b to PageDown/PageUp",
"manipulators": [
{
"from": {
"key_code": "f",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "page_down"
}
],
"type": "basic"
},
{
"from": {
"key_code": "b",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "page_up"
}
],
"type": "basic"
}
]
}
]
},
"devices": [],
"fn_function_keys": [
{
"from": {
"key_code": "f1"
},
"to": {
"consumer_key_code": "display_brightness_decrement"
}
},
{
"from": {
"key_code": "f2"
},
"to": {
"consumer_key_code": "display_brightness_increment"
}
},
{
"from": {
"key_code": "f3"
},
"to": {
"key_code": "mission_control"
}
},
{
"from": {
"key_code": "f4"
},
"to": {
"key_code": "launchpad"
}
},
{
"from": {
"key_code": "f5"
},
"to": {
"key_code": "illumination_decrement"
}
},
{
"from": {
"key_code": "f6"
},
"to": {
"key_code": "illumination_increment"
}
},
{
"from": {
"key_code": "f7"
},
"to": {
"consumer_key_code": "rewind"
}
},
{
"from": {
"key_code": "f8"
},
"to": {
"consumer_key_code": "play_or_pause"
}
},
{
"from": {
"key_code": "f9"
},
"to": {
"consumer_key_code": "fastforward"
}
},
{
"from": {
"key_code": "f10"
},
"to": {
"consumer_key_code": "mute"
}
},
{
"from": {
"key_code": "f11"
},
"to": {
"consumer_key_code": "volume_decrement"
}
},
{
"from": {
"key_code": "f12"
},
"to": {
"consumer_key_code": "volume_increment"
}
}
],
"name": "Default",
"selected": true,
"simple_modifications": [
{
"from": {
"key_code": "caps_lock"
},
"to": {
"key_code": "left_control"
}
}
],
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"keyboard_type": "ansi"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment