forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autojump.ts
43 lines (42 loc) · 1.06 KB
/
autojump.ts
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
const completionSpec: Fig.Spec = {
name: "autojump",
description: "A faster way to navigate your filesystem",
options: [
{
name: ["-h", "--help"],
description: "Show the help message and exit",
},
{
name: ["-a", "--add"],
description: "Add path",
args: { name: "directory", template: ["folders"] },
},
{
name: ["-i", "--increase"],
description: "Increase current directory weight",
args: { name: "weight", isOptional: true },
},
{
name: ["-d", "--decrease"],
description: "Decrease current directory weight",
args: { name: "weight", isOptional: true },
},
{
name: "--complete",
description: "Used for tab completion",
},
{
name: "--purge",
description: "Remove non-existent paths from database",
},
{
name: ["-s", "--stat"],
description: "Show database entries and their key weights",
},
{
name: ["-v", "--version"],
description: "Show version information",
},
],
};
export default completionSpec;