|
1 | 1 | { |
2 | | - "${}": { |
| 2 | + "UPdowncase Replace": { |
3 | 3 | "prefix": [ |
4 | 4 | "${}", |
5 | 5 | ], |
6 | | - "body": "${${1:${TM_SELECTED_TEXT:0}}:/${2|upcase,downcase|}}$0", |
| 6 | + "body": "${${1|0,1,2,3|}:/${2|upcase,downcase|}}", |
7 | 7 | "description": [ |
8 | 8 | "Capture replace case format.", |
9 | 9 | "Converts all the captured alphabetic characters to UPPERCASE or lowercase.", |
10 | 10 | "All leading dots (.) are stripped.", |
11 | 11 | "" |
12 | 12 | ] |
13 | 13 | }, |
14 | | - "${UPCASE}": { |
| 14 | + "UPCASE REPLACE": { |
15 | 15 | "prefix": [ |
16 | 16 | "upcase", |
17 | 17 | ], |
18 | | - "body": "${${1:${TM_SELECTED_TEXT:1}}:/upcase}$0", |
| 18 | + "body": "${${1|0,1,2,3|}:/${TM_SELECTED_TEXT:upcase}}", |
19 | 19 | "description": [ |
20 | 20 | "Capture replace case format.", |
21 | 21 | "Converts all the captured alphabetic characters to UPPERCASE.", |
22 | 22 | "All leading dots (.) are stripped.", |
23 | 23 | "" |
24 | 24 | ] |
25 | 25 | }, |
26 | | - "${downcase}": { |
| 26 | + "downcase replace": { |
27 | 27 | "prefix": [ |
28 | | - "downcase" |
| 28 | + "downcase", |
29 | 29 | ], |
30 | | - "body": "${${1:${TM_SELECTED_TEXT:2}}:/downcase}$0", |
| 30 | + "body": "${${1|0,1,2,3|}:/${TM_SELECTED_TEXT:downcase}}", |
31 | 31 | "description": [ |
32 | 32 | "Capture replace case format.", |
33 | 33 | "Converts all the captured alphabetic characters to lowercase.", |
34 | 34 | "All leading dots (.) are stripped.", |
35 | 35 | "" |
36 | 36 | ] |
37 | 37 | }, |
| 38 | + "Capture Replace": { |
| 39 | + "prefix": "$", |
| 40 | + "body": "$${1|0,1,2,3|}", |
| 41 | + "description": [ |
| 42 | + "Capture replace format.", |
| 43 | + "Replaced with the corresponding capture's captured text.", |
| 44 | + "All leading dots (.) are stripped.", |
| 45 | + "" |
| 46 | + ] |
| 47 | + }, |
38 | 48 | } |
0 commit comments