-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDefault.sublime-keymap
More file actions
54 lines (49 loc) · 1.67 KB
/
Copy pathDefault.sublime-keymap
File metadata and controls
54 lines (49 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[
{
"keys": ["+"],
"command": "fif_addon_change_context_lines",
"args": {"more": true},
"context": [{ "key": "selector", "operand": "text.find-in-files" }]
},
{
"keys": ["-"],
"command": "fif_addon_change_context_lines",
"args": {"more": false},
"context": [{ "key": "selector", "operand": "text.find-in-files" }]
},
// If there is a selection, do the "find-in-files" without further questions
{
"keys": ["primary+shift+f"],
"command": "fif_addon_quick_search",
"args": {"where": "-<untitled*"},
"context": [
{ "key": "num_selections", "operator": "equal", "operand": 1 },
{ "key": "selection_empty", "operator": "not_equal" },
{ "key": "setting.leave_my_keys_alone.FindInFiles-addon", "operator": "not_equal" }
]
},
// `next_match` and `prev_match` only move the cursor/selection. They
// don't switch views and "go-to" the location.
{
"keys": ["."],
"command": "fif_addon_next_match",
"context": [{ "key": "selector", "operand": "text.find-in-files" }]
},
{
"keys": [","],
"command": "fif_addon_prev_match",
"context": [{ "key": "selector", "operand": "text.find-in-files" }]
},
// Go-to to the location.
{
"keys": ["enter"],
"command": "fif_addon_goto",
"context": [{ "key": "selector", "operand": "text.find-in-files" }]
},
{
"keys": ["primary+enter"],
"command": "fif_addon_goto",
"args": {"preview": "toggle"},
"context": [{ "key": "selector", "operand": "text.find-in-files" }]
},
]