update: change the scope of key trigger bindings
This commit is contained in:
Родитель
1422f24a92
Коммит
aed39608ee
|
@ -4,7 +4,7 @@
|
|||
"command": "typescript_paste_and_format",
|
||||
"context": [
|
||||
{ "key": "setting.typescript_auto_format", "operator": "equal", "operand": true },
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"command": "typescript_paste_and_format",
|
||||
"context": [
|
||||
{ "key": "setting.typescript_auto_format", "operator": "equal", "operand": true },
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
"command": "typescript_paste_and_format",
|
||||
"context": [
|
||||
{ "key": "setting.typescript_auto_format", "operator": "equal", "operand": true },
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" },
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" },
|
||||
{ "key": "setting.enable_typescript_language_service", "operator": "equal", "operand": true }
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
|
|
|
@ -3,14 +3,14 @@
|
|||
"keys": [ "ctrl+t", "ctrl+d" ],
|
||||
"command": "typescript_go_to_definition",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"keys": [ "f12" ],
|
||||
"command": "typescript_go_to_definition",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -19,14 +19,14 @@
|
|||
"context": [
|
||||
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
|
||||
{ "key": "num_selections", "operator": "equal", "operand": 1, "match_all": true },
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"keys": [ "ctrl+alt+r"],
|
||||
"command": "typescript_nav_to",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -35,21 +35,21 @@
|
|||
"context": [
|
||||
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
|
||||
{ "key": "num_selections", "operator": "equal", "operand": 1, "match_all": true },
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"keys": [ "ctrl+t", "ctrl+m" ],
|
||||
"command": "typescript_rename",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"keys": [ "ctrl+t", "ctrl+n" ],
|
||||
"command": "typescript_next_ref",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -63,7 +63,7 @@
|
|||
"keys": [ "ctrl+t", "ctrl+p" ],
|
||||
"command": "typescript_prev_ref",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -77,35 +77,35 @@
|
|||
"keys": [ "ctrl+t", "ctrl+q" ],
|
||||
"command": "typescript_quick_info_doc",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"keys": [ "ctrl+t", "ctrl+r" ],
|
||||
"command": "typescript_find_references",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"keys": [ "ctrl+t", "ctrl+s" ],
|
||||
"command": "typescript_save",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"keys": [ "ctrl+t", "ctrl+o" ],
|
||||
"command": "typescript_signature_panel",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"keys": ["("],
|
||||
"command": "typescript_signature_popup",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" },
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" },
|
||||
{ "key": "paren_pressed"}
|
||||
]
|
||||
},
|
||||
|
@ -114,7 +114,7 @@
|
|||
"command": "typescript_signature_popup",
|
||||
"args": {"move": "next"},
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" },
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" },
|
||||
{ "key": "is_popup_visible"}
|
||||
]
|
||||
},
|
||||
|
@ -123,7 +123,7 @@
|
|||
"command": "typescript_signature_popup",
|
||||
"args": {"move": "prev"},
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" },
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" },
|
||||
{ "key": "is_popup_visible"}
|
||||
]
|
||||
}, // In case when auto match is enabled, only format if not within {}
|
||||
|
@ -131,7 +131,7 @@
|
|||
"keys": [ "alt+,"],
|
||||
"command": "typescript_signature_popup",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" },
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" },
|
||||
{ "key": "tooltip_supported", "operator": "equal", "operand": true}
|
||||
|
||||
]
|
||||
|
@ -159,21 +159,21 @@
|
|||
{ "key": "selection_empty", "operator": "equal", "operand": true },
|
||||
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$" },
|
||||
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\}" },
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"keys": [ "ctrl+;" ],
|
||||
"command": "typescript_format_line",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"keys": [ "ctrl+shift+]" ],
|
||||
"command": "typescript_format_brackets",
|
||||
"context": [
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }
|
||||
{ "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
Загрузка…
Ссылка в новой задаче