Skip to content

Instantly share code, notes, and snippets.

@wilhelmklopp
Created May 4, 2020 21:20
Show Gist options
  • Save wilhelmklopp/09b3520f1e12ebedd2f536560f5f9ea9 to your computer and use it in GitHub Desktop.
Save wilhelmklopp/09b3520f1e12ebedd2f536560f5f9ea9 to your computer and use it in GitHub Desktop.
slack block kit snippets for vscode
{
"Section block": {
"prefix": "section block",
"body": [
"{",
"\t\"type\": \"section\",",
"\t\"text\": {",
"\t\t\"type\": \"mrkdwn\",",
"\t\t\"text\": \"$TM_SELECTED_TEXT$0\"",
"\t}",
"}"
]
},
"Section block with accessory button": {
"prefix": "section block with accessory button",
"body": [
"{",
"\t\"type\": \"section\",",
"\t\"block_id\": \"$1\",",
"\t\"text\": {",
"\t\t\"type\": \"mrkdwn\",",
"\t\t\"text\": \"$TM_SELECTED_TEXT$0\"",
"\t},",
"\t\"accessory\": {",
"\t\t\"action_id\": \"$2\",",
"\t\t\"type\": \"button\",",
"\t\t\"text\": {",
"\t\t\t\"type\": \"plain_text\",",
"\t\t\t\"text\": \"$3\",",
"\t\t\t\"emoji\": True,",
"\t\t},",
"\t\t\"value\": \"\",",
"\t}",
"}"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment