Skip to content

Commit 924fbe1

Browse files
committed
Adding to typescript
1 parent 35cac2f commit 924fbe1

2 files changed

Lines changed: 16 additions & 21 deletions

File tree

.bashrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,3 +1069,6 @@ alias ga="git ls-files -m --exclude-standard | fzf --print0 -m --preview 'git di
10691069
# Git undo changes to selected files with FZF
10701070
alias gx="git ls-files -m --exclude-standard | fzf --print0 -m --preview 'git diff --color=always {}' | xargs -0 -t -o git checkout -- "
10711071

1072+
1073+
alias dcr='docker-compose run'
1074+
alias dce='docker-compose exec'

code/snippets/ecmascript.code-snippets

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Placeholders with the same ids are connected.
88
// Example:
99
// "Print to console": {
10-
// "scope": "javascript,typescript",
10+
// "scope": "javascript,typescript,typescriptreact",
1111
// "prefix": "log",
1212
// "body": [
1313
// "console.log('$1');",
@@ -16,59 +16,51 @@
1616
// "description": "Log output to console"
1717
// }
1818
"Console Log Parse": {
19-
"scope": "javascript,typescript",
20-
"prefix": "cj",
21-
"body": [
22-
"console.log(JSON.parse(JSON.stringify($1)))",
23-
],
24-
"description": "Console log garbo salesforce proxy"
25-
},
26-
"Console Log Parse": {
27-
"scope": "javascript,typescript",
19+
"scope": "javascript,typescript,typescriptreact",
2820
"prefix": "cj'",
2921
"body": [
3022
"console.log('$1', JSON.parse(JSON.stringify($1)))",
3123
],
3224
"description": "Console log garbo salesforce proxy"
3325
},
3426
"Console Log": {
35-
"scope": "javascript,typescript",
27+
"scope": "javascript,typescript,typescriptreact",
3628
"prefix": "c",
3729
"body": [
3830
"console.log($1)",
3931
],
4032
"description": "Console log string"
4133
},
4234
"Console Log String": {
43-
"scope": "javascript,typescript",
35+
"scope": "javascript,typescript,typescriptreact",
4436
"prefix": "c'",
4537
"body": [
4638
"console.log('$1')",
4739
],
4840
"description": "Console log string"
4941
},
5042
"Console Log Descriptor Then Thing": {
51-
"scope": "javascript,typescript",
43+
"scope": "javascript,typescript,typescriptreact",
5244
"prefix": "ct",
5345
"body": [
5446
"console.log('$1 ${2}', ${2})",
5547
],
5648
"description": "Console log descriptor then thing"
5749
},
5850
"Console Log value name and value": {
59-
"scope": "javascript,typescript",
51+
"scope": "javascript,typescript,typescriptreact",
6052
"prefix": "c,",
6153
"body": [
6254
"console.log('$1', ${1})",
6355
],
6456
"description": "Console log value name and value"
6557
},
6658
"Console Log Emoji 🔥": {
67-
"scope": "javascript,typescript",
68-
"prefix": "cc",
69-
"body": [
70-
"console.log('${1|🔥,❌,🚽,🌿,💙|}$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1')"
71-
],
72-
"description": "Make console output noticable"
59+
"scope": "javascript,typescript,typescriptreact",
60+
"prefix": "cc",
61+
"body": [
62+
"console.log('${1|🔥,❌,🚽,🌿,💙|}$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1')"
63+
],
64+
"description": "Make console output noticable"
7365
}
74-
}
66+
}

0 commit comments

Comments
 (0)