Skip to content

Commit 1482fd4

Browse files
Add action IDs to the color selection commands (#17821)
## Summary of the Pull Request Add action IDs to the default commands for color selection ## Validation Steps Performed Color selection commands now show up in the command palette ## PR Checklist - [x] Closes #17819 - [ ] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
1 parent 837215b commit 1482fd4

File tree

1 file changed

+80
-40
lines changed

1 file changed

+80
-40
lines changed

src/cascadia/TerminalSettingsModel/enableColorSelection.json

Lines changed: 80 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -8,79 +8,89 @@
88
"action": "experimental.colorSelection"
99
// default fg and bg (i07 and i00)
1010
},
11-
"keys": "alt+1"
11+
"keys": "alt+1",
12+
"id": "Terminal.ColorSelectionDefaultFgAndBg"
1213
},
1314
{
1415
"command":
1516
{
1617
"action": "experimental.colorSelection",
1718
"foreground": "i08"
1819
},
19-
"keys": "alt+2"
20+
"keys": "alt+2",
21+
"id": "Terminal.ColorSelectionFgIndex8"
2022
},
2123
{
2224
"command":
2325
{
2426
"action": "experimental.colorSelection",
2527
"foreground": "i0c"
2628
},
27-
"keys": "alt+3"
29+
"keys": "alt+3",
30+
"id": "Terminal.ColorSelectionFgIndex12"
2831
},
2932
{
3033
"command":
3134
{
3235
"action": "experimental.colorSelection",
3336
"foreground": "i0a"
3437
},
35-
"keys": "alt+4"
38+
"keys": "alt+4",
39+
"id": "Terminal.ColorSelectionFgIndex10"
3640
},
3741
{
3842
"command":
3943
{
4044
"action": "experimental.colorSelection",
4145
"foreground": "i0e"
4246
},
43-
"keys": "alt+5"
47+
"keys": "alt+5",
48+
"id": "Terminal.ColorSelectionFgIndex14"
4449
},
4550
{
4651
"command":
4752
{
4853
"action": "experimental.colorSelection",
4954
"foreground": "i09"
5055
},
51-
"keys": "alt+6"
56+
"keys": "alt+6",
57+
"id": "Terminal.ColorSelectionFgIndex9"
5258
},
5359
{
5460
"command":
5561
{
5662
"action": "experimental.colorSelection",
5763
"foreground": "i0d"
5864
},
59-
"keys": "alt+7"
65+
"keys": "alt+7",
66+
"id": "Terminal.ColorSelectionFgIndex13"
6067
},
6168
{
6269
"command":
6370
{
6471
"action": "experimental.colorSelection",
6572
"foreground": "i0b"
6673
},
67-
"keys": "alt+8"
74+
"keys": "alt+8",
75+
"id": "Terminal.ColorSelectionFgIndex11"
6876
},
6977
{
7078
"command":
7179
{
7280
"action": "experimental.colorSelection",
7381
"foreground": "i0f"
7482
},
75-
"keys": "alt+9"
83+
"keys": "alt+9",
84+
"id": "Terminal.ColorSelectionFgIndex15"
7685
},
7786
{
7887
"command":
7988
{
8089
"action": "experimental.colorSelection",
8190
"foreground": "i03"
8291
},
83-
"keys": "alt+0"
92+
"keys": "alt+0",
93+
"id": "Terminal.ColorSelectionFgIndex3"
8494
},
8595
// background
8696
{
@@ -90,7 +100,8 @@
90100
"foreground": "i00",
91101
"background": "i07"
92102
},
93-
"keys": "ctrl+1"
103+
"keys": "ctrl+1",
104+
"id": "Terminal.ColorSelectionBgIndex7"
94105
},
95106
{
96107
"command":
@@ -99,7 +110,8 @@
99110
"foreground": "i00",
100111
"background": "i08"
101112
},
102-
"keys": "ctrl+2"
113+
"keys": "ctrl+2",
114+
"id": "Terminal.ColorSelectionBgIndex8"
103115
},
104116
{
105117
"command":
@@ -108,7 +120,8 @@
108120
"foreground": "i00",
109121
"background": "i0c"
110122
},
111-
"keys": "ctrl+3"
123+
"keys": "ctrl+3",
124+
"id": "Terminal.ColorSelectionBgIndex12"
112125
},
113126
{
114127
"command":
@@ -117,7 +130,8 @@
117130
"foreground": "i00",
118131
"background": "i0a"
119132
},
120-
"keys": "ctrl+4"
133+
"keys": "ctrl+4",
134+
"id": "Terminal.ColorSelectionBgIndex10"
121135
},
122136
{
123137
"command":
@@ -126,7 +140,8 @@
126140
"foreground": "i00",
127141
"background": "i0e"
128142
},
129-
"keys": "ctrl+5"
143+
"keys": "ctrl+5",
144+
"id": "Terminal.ColorSelectionBgIndex14"
130145
},
131146
{
132147
"command":
@@ -135,7 +150,8 @@
135150
"foreground": "i00",
136151
"background": "i09"
137152
},
138-
"keys": "ctrl+6"
153+
"keys": "ctrl+6",
154+
"id": "Terminal.ColorSelectionBgIndex9"
139155
},
140156
{
141157
"command":
@@ -144,7 +160,8 @@
144160
"foreground": "i00",
145161
"background": "i0d"
146162
},
147-
"keys": "ctrl+7"
163+
"keys": "ctrl+7",
164+
"id": "Terminal.ColorSelectionBgIndex13"
148165
},
149166
{
150167
"command":
@@ -153,7 +170,8 @@
153170
"foreground": "i00",
154171
"background": "i0b"
155172
},
156-
"keys": "ctrl+8"
173+
"keys": "ctrl+8",
174+
"id": "Terminal.ColorSelectionBgIndex11"
157175
},
158176
{
159177
"command":
@@ -162,7 +180,8 @@
162180
"foreground": "i00",
163181
"background": "i0f"
164182
},
165-
"keys": "ctrl+9"
183+
"keys": "ctrl+9",
184+
"id": "Terminal.ColorSelectionBgIndex15"
166185
},
167186
{
168187
"command":
@@ -171,7 +190,8 @@
171190
"foreground": "i00",
172191
"background": "i03"
173192
},
174-
"keys": "ctrl+0"
193+
"keys": "ctrl+0",
194+
"id": "Terminal.ColorSelectionBgIndex3"
175195
},
176196
// with matching
177197
// Foreground, all matches
@@ -182,7 +202,8 @@
182202
"matchMode": "all",
183203
// default fg and bg (i07 and i00)
184204
},
185-
"keys": "alt+shift+1"
205+
"keys": "alt+shift+1",
206+
"id": "Terminal.ColorSelectionMatchDefaultFgAndBg"
186207
},
187208
{
188209
"command":
@@ -191,7 +212,8 @@
191212
"matchMode": "all",
192213
"foreground": "i08"
193214
},
194-
"keys": "alt+shift+2"
215+
"keys": "alt+shift+2",
216+
"id": "Terminal.ColorSelectionMatchFgIndex8"
195217
},
196218
{
197219
"command":
@@ -200,7 +222,8 @@
200222
"matchMode": "all",
201223
"foreground": "i0c"
202224
},
203-
"keys": "alt+shift+3"
225+
"keys": "alt+shift+3",
226+
"id": "Terminal.ColorSelectionMatchFgIndex12"
204227
},
205228
{
206229
"command":
@@ -209,7 +232,8 @@
209232
"matchMode": "all",
210233
"foreground": "i0a"
211234
},
212-
"keys": "alt+shift+4"
235+
"keys": "alt+shift+4",
236+
"id": "Terminal.ColorSelectionMatchFgIndex10"
213237
},
214238
{
215239
"command":
@@ -218,7 +242,8 @@
218242
"matchMode": "all",
219243
"foreground": "i0e"
220244
},
221-
"keys": "alt+shift+5"
245+
"keys": "alt+shift+5",
246+
"id": "Terminal.ColorSelectionMatchFgIndex14"
222247
},
223248
{
224249
"command":
@@ -227,7 +252,8 @@
227252
"matchMode": "all",
228253
"foreground": "i09"
229254
},
230-
"keys": "alt+shift+6"
255+
"keys": "alt+shift+6",
256+
"id": "Terminal.ColorSelectionMatchFgIndex9"
231257
},
232258
{
233259
"command":
@@ -236,7 +262,8 @@
236262
"matchMode": "all",
237263
"foreground": "i0d"
238264
},
239-
"keys": "alt+shift+7"
265+
"keys": "alt+shift+7",
266+
"id": "Terminal.ColorSelectionMatchFgIndex13"
240267
},
241268
{
242269
"command":
@@ -245,7 +272,8 @@
245272
"matchMode": "all",
246273
"foreground": "i0b"
247274
},
248-
"keys": "alt+shift+8"
275+
"keys": "alt+shift+8",
276+
"id": "Terminal.ColorSelectionMatchFgIndex11"
249277
},
250278
{
251279
"command":
@@ -254,7 +282,8 @@
254282
"matchMode": "all",
255283
"foreground": "i0f"
256284
},
257-
"keys": "alt+shift+9"
285+
"keys": "alt+shift+9",
286+
"id": "Terminal.ColorSelectionMatchFgIndex15"
258287
},
259288
{
260289
"command":
@@ -263,7 +292,8 @@
263292
"matchMode": "all",
264293
"foreground": "i03"
265294
},
266-
"keys": "alt+shift+0"
295+
"keys": "alt+shift+0",
296+
"id": "Terminal.ColorSelectionMatchFgIndex3"
267297
},
268298
// background, all matches
269299
{
@@ -274,7 +304,8 @@
274304
"foreground": "i00",
275305
"background": "i07"
276306
},
277-
"keys": "ctrl+shift+1"
307+
"keys": "ctrl+shift+1",
308+
"id": "Terminal.ColorSelectionMatchBgIndex7"
278309
},
279310
{
280311
"command":
@@ -284,7 +315,8 @@
284315
"foreground": "i00",
285316
"background": "i08"
286317
},
287-
"keys": "ctrl+shift+2"
318+
"keys": "ctrl+shift+2",
319+
"id": "Terminal.ColorSelectionMatchBgIndex8"
288320
},
289321
{
290322
"command":
@@ -294,7 +326,8 @@
294326
"foreground": "i00",
295327
"background": "i0c"
296328
},
297-
"keys": "ctrl+shift+3"
329+
"keys": "ctrl+shift+3",
330+
"id": "Terminal.ColorSelectionMatchBgIndex12"
298331
},
299332
{
300333
"command":
@@ -304,7 +337,8 @@
304337
"foreground": "i00",
305338
"background": "i0a"
306339
},
307-
"keys": "ctrl+shift+4"
340+
"keys": "ctrl+shift+4",
341+
"id": "Terminal.ColorSelectionMatchBgIndex10"
308342
},
309343
{
310344
"command":
@@ -314,7 +348,8 @@
314348
"foreground": "i00",
315349
"background": "i0e"
316350
},
317-
"keys": "ctrl+shift+5"
351+
"keys": "ctrl+shift+5",
352+
"id": "Terminal.ColorSelectionMatchBgIndex14"
318353
},
319354
{
320355
"command":
@@ -324,7 +359,8 @@
324359
"foreground": "i00",
325360
"background": "i09"
326361
},
327-
"keys": "ctrl+shift+6"
362+
"keys": "ctrl+shift+6",
363+
"id": "Terminal.ColorSelectionMatchBgIndex9"
328364
},
329365
{
330366
"command":
@@ -334,7 +370,8 @@
334370
"foreground": "i00",
335371
"background": "i0d"
336372
},
337-
"keys": "ctrl+shift+7"
373+
"keys": "ctrl+shift+7",
374+
"id": "Terminal.ColorSelectionMatchBgIndex13"
338375
},
339376
{
340377
"command":
@@ -344,7 +381,8 @@
344381
"foreground": "i00",
345382
"background": "i0b"
346383
},
347-
"keys": "ctrl+shift+8"
384+
"keys": "ctrl+shift+8",
385+
"id": "Terminal.ColorSelectionMatchBgIndex11"
348386
},
349387
{
350388
"command":
@@ -354,7 +392,8 @@
354392
"foreground": "i00",
355393
"background": "i0f"
356394
},
357-
"keys": "ctrl+shift+9"
395+
"keys": "ctrl+shift+9",
396+
"id": "Terminal.ColorSelectionMatchBgIndex15"
358397
},
359398
{
360399
"command":
@@ -364,7 +403,8 @@
364403
"foreground": "i00",
365404
"background": "i03"
366405
},
367-
"keys": "ctrl+shift+0"
406+
"keys": "ctrl+shift+0",
407+
"id": "Terminal.ColorSelectionMatchBgIndex3"
368408
}
369409
]
370410
}

0 commit comments

Comments
 (0)