forked from tomrijndorp/vscode-finditfaster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
270 lines (270 loc) · 11.7 KB
/
Copy pathpackage.json
File metadata and controls
270 lines (270 loc) · 11.7 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
{
"name": "find-it-faster",
"displayName": "FindItFaster",
"publisher": "TomRijndorp",
"icon": "media/icon.png",
"repository": {
"url": "https://github.com/tomrijndorp/vscode-finditfaster"
},
"description": "Find it, but faster! Leveraging fzf and rg.",
"keywords": [
"ag",
"bat",
"batcat",
"find it faster",
"files",
"find",
"finder",
"fuzzy",
"fzf",
"grep",
"open",
"rg",
"ripgrep",
"search",
"within"
],
"version": "0.0.39",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:find-it-faster.findFiles",
"onCommand:find-it-faster.findFilesWithType",
"onCommand:find-it-faster.findWithinFiles",
"onCommand:find-it-faster.findWithinFilesWithType",
"onCommand:find-it-faster.listSearchLocations"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "find-it-faster.findFiles",
"title": "Find It Faster: search file"
},
{
"command": "find-it-faster.findFilesWithType",
"title": "Find It Faster: search file (with type filter)"
},
{
"command": "find-it-faster.findWithinFiles",
"title": "Find It Faster: search within files"
},
{
"command": "find-it-faster.findWithinFilesWithType",
"title": "Find It Faster: search within files (with type filter)"
},
{
"command": "find-it-faster.listSearchLocations",
"title": "Find It Faster: list search locations (modify in extension settings)"
},
{
"command": "find-it-faster.resumeSearch",
"title": "Find It Faster: resume last search"
}
],
"keybindings": [
{
"command": "find-it-faster.findFiles",
"mac": "cmd+shift+j",
"linux": "ctrl+shift+j"
},
{
"command": "find-it-faster.findWithinFiles",
"mac": "cmd+shift+u",
"linux": "ctrl+shift+u"
},
{
"command": "find-it-faster.findWithinFilesWithType",
"mac": "ctrl+cmd+shift+u",
"linux": "ctrl+shift+alt+u"
}
],
"configuration": {
"title": "FindItFaster",
"properties": {
"find-it-faster.general.hideTerminalAfterSuccess": {
"markdownDescription": "Extensions have limited control over the terminal panel. Ideally, it would be possible to automatically switch back to the previous thing you were doing (e.g. hide the terminal, show the terminal you're working on, show the tasks panel if that's what you were on), but we can't. Select here whether you want the terminal to be hidden or remain shown after invoking a command that fails / is canceled.",
"type": "boolean",
"default": true
},
"find-it-faster.general.hideTerminalAfterFail": {
"markdownDescription": "Extensions have limited control over the terminal panel. Ideally, it would be possible to automatically switch back to the previous thing you were doing (e.g. hide the terminal, show the terminal you're working on, show the tasks panel if that's what you were on), but we can't. Select here whether you want the terminal to be hidden or remain shown after invoking a command that succeeds.",
"type": "boolean",
"default": true
},
"find-it-faster.general.clearTerminalAfterUse": {
"markdownDescription": "Sends a 'clear' command after invoking a terminal command for a cleaner look",
"type": "boolean",
"default": true
},
"find-it-faster.general.killTerminalAfterUse": {
"markdownDescription": "Kills this extension's terminal such that your previous terminal gets back into focus. Comes with a performance penalty for creating a new terminal on every invocation.",
"type": "boolean",
"default": false
},
"find-it-faster.general.showMaximizedTerminal": {
"markdownDescription": "Show the terminal in full screen. Works especially nicely if you set the \"hide after success / fail\" options in these preferences.",
"type": "boolean",
"default": false
},
"find-it-faster.general.useGitIgnoreExcludes": {
"markdownDescription": "Use `.gitignore` entries (if present) to limit search paths",
"type": "boolean",
"default": true
},
"find-it-faster.general.useWorkspaceSearchExcludes": {
"markdownDescription": "In order to speed up VS Code's native search functionality, you can use the `search.exclude` setting. If checked, this extension will honor the same exclude patterns (as long as they follow the standard \"gitignore glob style\" that `rg` uses.",
"type": "boolean",
"default": true
},
"find-it-faster.general.additionalSearchLocations": {
"markdownDescription": "Search files in these locations",
"type": "array",
"default": []
},
"find-it-faster.general.additionalSearchLocationsWhen": {
"markdownDescription": "When to search the files listed in `general.searchLocations`",
"type": "string",
"enum": [
"always",
"never",
"noWorkspaceOnly"
],
"enumDescriptions": [
"Always search these locations",
"Never search these locations (setting useful for individual workspace overrides)",
"Only when no workspace is open"
],
"default": "always"
},
"find-it-faster.general.searchWorkspaceFolders": {
"markdownDescription": "Search the folders defined in the workspace",
"type": "boolean",
"default": true
},
"find-it-faster.general.searchCurrentWorkingDirectory": {
"markdownDescription": "Search the current working directory (`process.cwd()`)",
"type": "string",
"enum": [
"always",
"never",
"noWorkspaceOnly"
],
"enumDescriptions": [
"Always search the working directory",
"Never search the working directory",
"Only search the working directory when no workspace is open"
],
"default": "noWorkspaceOnly"
},
"find-it-faster.general.batTheme": {
"markdownDescription": "The color theme to use for `bat` (see `bat --list-themes`)",
"type": "string",
"default": "1337"
},
"find-it-faster.general.openFileInPreviewEditor": {
"markdownDescription": "When set to `true` files open in a Preview Editor. Use in conjunction with the `workbench.editor.enablePreivew` setting.",
"type": "boolean",
"default": false
},
"find-it-faster.findFiles.showPreview": {
"markdownDescription": "Show a preview window when searching files",
"type": "boolean",
"default": true
},
"find-it-faster.findFiles.previewCommand": {
"markdownDescription": "When populated: Used by `fzf` to produce the preview. Use `{}` to indicate the filename. Example: `bat {}`.",
"type": "string",
"default": ""
},
"find-it-faster.findFiles.previewWindowConfig": {
"markdownDescription": "When populated: Used by `fzf` to determine position and look of the preview window. See the `fzf` documentation. Example for a horizontal split: `top,50%`.",
"type": "string",
"default": ""
},
"find-it-faster.findWithinFiles.showPreview": {
"markdownDescription": "Show a preview window when searching within files",
"type": "boolean",
"default": true
},
"find-it-faster.findWithinFiles.previewCommand": {
"markdownDescription": "When populated: Used by `fzf` to produce the preview when searching within files. Use `{1}` to indicate the filename, `{2}` for the line number. Example using `cat` and `awk` instead of `bat`: `cat {1} | awk '{if (NR>={2}) print}'`.",
"type": "string",
"default": ""
},
"find-it-faster.findWithinFiles.previewWindowConfig": {
"markdownDescription": "When populated: Used by `fzf` to determine position and look of the preview window. See the `fzf` documentation. Example for a horizontal split: `top,50%,border-bottom,+{2}+3/3,~3`.",
"type": "string",
"default": ""
},
"find-it-faster.findWithinFiles.fuzzRipgrepQuery": {
"markdownDescription": "By default, matching in \"Find Within Files\" is exact. Enabling this option relaxes the matching by slightly fuzzing the query that is sent to `rg`: it treats whitespaces as wildcards (`.*`). For example, when enabled, the query `function bar` will match `function foobar`. Otherwise, it won't. This setting does not work on Windows at the moment.",
"type": "boolean",
"default": false
},
"find-it-faster.advanced.disableStartupChecks": {
"markdownDescription": "By default, we check that you have `fzf`, `rg`, and `bat` on your path. If you'd like to disable these checks because you're getting creative (e.g. use `cat` instead of `bat`), check this box. Obviously you may see errors on your terminal if we do call one of these programs when they are not present!",
"type": "boolean",
"default": false
},
"find-it-faster.advanced.useEditorSelectionAsQuery": {
"markdownDescription": "By default, if you have an active editor with a text selection, we'll use that to populate the prompt in `fzf` such that it will start filtering text directly. Uncheck to disable.",
"type": "boolean",
"default": true
},
"find-it-faster.general.restoreFocusTerminal": {
"markdownDescription": "When enabled, the extension will restore focus to the previously active terminal after executing a command. This is useful if you frequently switch between the terminal and other parts of VS Code. Note: due to limitations in VS Code, will not focus other panel tabs such as problems/output/etc.",
"type": "boolean",
"default": false
},
"find-it-faster.general.useTerminalInEditor": {
"markdownDescription": "When enabled, the extension will create the terminal in the main editor stage.",
"type": "boolean",
"default": false
},
"find-it-faster.general.shellPathForTerminal": {
"markdownDescription": "Set the path for the shell (terminal type) to be used.",
"type": "string",
"default": ""
},
"find-it-faster.general.shellArgsForTerminal": {
"markdownDescription": "Set the args for the shell (terminal type) to be used.",
"type": "array | undefined",
"default": "undefined"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc --noEmitOnError --strict -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"vscode:package": "vsce package --githubBranch main",
"vscode:publish": "vsce publish --githubBranch main",
"minimist": ">=1.2.6",
"qs": ">=6.10.3",
"ansi-regex": ">=5.0.1",
"nanoid": ">=3.1.31"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.2",
"@types/node": "14.x",
"@types/vscode": "^1.90.0",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"eslint": "^7.27.0",
"glob": "^7.1.7",
"mocha": "^10.4.0",
"typescript": "^4.3.2",
"vsce": "^2.15.0",
"vscode-test": "^1.6.1"
}
}