/
query_core.toml
72 lines (59 loc) · 1.42 KB
/
query_core.toml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[term.C]
alias = "context"
[term.context]
[[term.context.group.display]]
command = "show-html"
args.context = "$0"
# The default term is what gets applied to things without a term. It can also
# be explicitly referenced by other terms.
[term.default]
[[term.default.expand]]
term = "file"
[[term.default.expand]]
term = "idprefix"
[[term.default.expand]]
term = "text"
[term.file]
[[term.file.group.file-search]]
command = "search-files"
args.positional = "$0"
[term.id]
# We can't do this and `idprefix` in the same command and it's not clear it's
# worth the effort to support both simultaneously.
conflicts = ["idprefix"]
[[term.id.group.semantic-search]]
command = "search-identifiers"
args.positional = "$0"
args.exact_match = true
[term.idprefix]
[[term.idprefix.group.semantic-search]]
command = "search-identifiers"
args.positional = "$0"
args.exact_match = false
[term.pathre]
[[term.pathre.group.semantic-search]]
command = "filter-crossref"
args.pathre = "$0"
[[term.pathre.group.text-search]]
command = "search-text"
args.pathre = "$0"
[term.p]
alias = "path"
[term.path]
[[term.path.expand]]
term = "pathre"
transforms = ["regexp_escape"]
[term.re]
[[term.re.group.text-search]]
command = "search-text"
args.re = "$0"
[term.sym]
alias = "symbol"
[term.symbol]
[[term.symbol.group.semantic-search]]
command = "search-identifiers"
args.add_sym = "$0"
[term.text]
[[term.text.expand]]
term = "re"
transforms = ["regexp_escape"]