Skip to content

Instantly share code, notes, and snippets.

@nicholasjackson
Created April 13, 2020 10:29
Show Gist options
  • Save nicholasjackson/68dfcc338250091bccec938ea29150a0 to your computer and use it in GitHub Desktop.
Save nicholasjackson/68dfcc338250091bccec938ea29150a0 to your computer and use it in GitHub Desktop.
[
{
"title": "command + h/j/k/l/u/i to arrow keys and home end",
"rules": [
{
"description": "Change Command + h/j/k/l to Arrows",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
]
}
]
},
{
"description": "Change Command + u/i to home/end",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "home"
}
]
},
{
"type": "basic",
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "end"
}
]
}
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "f",
},
"parameters": {
"basic.to_if_alone_timeout_milliseconds": 250,
"basic.to_if_held_down_threshold_milliseconds": 250
},
"to_if_alone": [
{
"key_code": "f"
}
],
"to_if_held_down": [
{
"key_code": "control"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment