-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtasks.json
More file actions
115 lines (115 loc) · 2.67 KB
/
tasks.json
File metadata and controls
115 lines (115 loc) · 2.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[
{
"label": "python: run current file in venv",
"command": "source .venv/bin/activate.fish && direnv export fish | source && python $ZED_RELATIVE_FILE",
"use_new_terminal": false,
"allow_concurrent_runs": false,
"reveal": "always",
},
{
"label": "lazygit",
"command": "lazygit",
"use_new_terminal": false,
"allow_concurrent_runs": false,
"hide": "always",
"reveal": "always",
"cwd": "$ZED_DIRNAME",
"shell": {
"with_arguments": {
"program": "sh",
"args": ["--noediting", "--norc", "--noprofile"],
},
},
},
{
"label": "yazi",
"command": "yazi",
"use_new_terminal": false,
"allow_concurrent_runs": false,
"hide": "always",
"reveal": "always",
"cwd": "$ZED_DIRNAME",
"env": { "EDITOR": "zed" },
},
{
"label": "file finder",
"command": "zed \"$(tv files)\"",
"reveal": "always",
"hide": "always",
"cwd": "$ZED_WORKTREE_ROOT",
"allow_concurrent_runs": true,
"use_new_terminal": true,
"shell": {
"with_arguments": {
"program": "sh",
"args": ["--noediting", "--norc", "--noprofile"],
},
},
},
{
"label": "find in files",
"command": "zed \"$(tv text)\"",
"reveal": "always",
"hide": "always",
"cwd": "$ZED_WORKTREE_ROOT",
"allow_concurrent_runs": true,
"use_new_terminal": true,
"shell": {
"with_arguments": {
"program": "sh",
"args": ["--noediting", "--norc", "--noprofile"],
},
},
},
{
"label": "find in files - selected text",
"command": "zed \"$(tv text -i \"$ZED_SELECTED_TEXT\")\"",
"cwd": "$ZED_WORKTREE_ROOT",
"allow_concurrent_runs": true,
"use_new_terminal": true,
"reveal": "always",
"hide": "always",
"shell": {
"with_arguments": {
"program": "sh",
"args": ["--noediting", "--norc", "--noprofile"],
},
},
},
{
"label": "github browse",
"command": "gh",
"args": ["browse", "$ZED_RELATIVE_FILE", "--commit=$(git rev-parse HEAD)"],
"use_new_terminal": false,
"allow_concurrent_runs": false,
"reveal": "never",
"reveal_target": "dock",
"hide": "always",
"shell": "system",
},
{
"label": "go: add struct tags",
"command": "gomodifytags",
"args": [
"-file",
"$ZED_FILE",
"-struct",
"$ZED_SYMBOL",
"-add-tags",
"json",
"-transform",
"camelcase",
"-skip-unexported",
"-quiet",
"-w",
],
"reveal": "never",
"hide": "always",
"shell": {
"with_arguments": {
"program": "sh",
"args": ["--noediting", "--norc", "--noprofile"],
},
},
},
]