Skip to content

Instantly share code, notes, and snippets.

@monry
Created September 6, 2019 02:12
Show Gist options
  • Save monry/eeda9ccee4e0f7f26bff95d22e166ab1 to your computer and use it in GitHub Desktop.
Save monry/eeda9ccee4e0f7f26bff95d22e166ab1 to your computer and use it in GitHub Desktop.
左 Shift 二回で Quick Search を起動する
{
"title": "Launch Quick Search in Unity",
"rules": [
{
"description": "Double tap 'left_shift' to show Quick Search in Unity",
"manipulators": [
{
"type": "basic",
"from": { "key_code": "left_shift" },
"to": [
{
"key_code": "7",
"modifiers": [ "option", "shift" ]
}
],
"conditions": [
{ "type": "variable_if", "name": "left_shift_key", "value": 1 },
{ "type": "frontmost_application_if", "bundle_identifiers": [ "^com\\.unity3d\\.UnityEditor5\\.x" ] }
]
},
{
"type": "basic",
"from": {
"key_code": "left_shift",
"modifiers": { "optional": [ "any" ] }
},
"to": [
{ "set_variable": { "name": "left_shift_key", "value": 1 } },
{ "key_code": "left_shift" }
],
"to_delayed_action": {
"to_if_invoked": [
{ "set_variable": { "name": "left_shift_key", "value": 0 } }
],
"to_if_canceled": [
{ "set_variable": { "name": "left_shift_key", "value": 0 } }
]
},
"conditions": [
{ "type": "variable_if", "name": "left_shift_key", "value": 0 },
{ "type": "frontmost_application_if", "bundle_identifiers": [ "^com\\.unity3d\\.UnityEditor5\\.x" ] }
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment