Skip to content

Commit

Permalink
Merge pull request #28 from takumisoft68/feature/support_mdx
Browse files Browse the repository at this point in the history
add mdx to target languages
  • Loading branch information
takumisoft68 authored Jun 15, 2021
2 parents b973dba + 8f6d6d9 commit c4eeea1
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
],
"activationEvents": [
"onLanguage:markdown",
"onLanguage:mdx",
"onCommand:markdowntable.tsvToTable",
"onCommand:markdowntable.format",
"onCommand:markdowntable.insertRight",
Expand Down Expand Up @@ -96,6 +97,26 @@
"command": "markdowntable.prevCell",
"key": "shift+tab",
"when": "editorLangId == markdown && editorTextFocus && !editorReadonly && !editorTabMovesFocus && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible && !inSnippetMode"
},
{
"command": "markdowntable.format",
"key": "shift+alt+f",
"when": "editorLangId == mdx && editorTextFocus"
},
{
"command": "markdowntable.tsvToTable",
"key": "shift+alt+t",
"when": "editorLangId == mdx && editorTextFocus && editorHasSelection"
},
{
"command": "markdowntable.nextCell",
"key": "tab",
"when": "editorLangId == mdx && editorTextFocus && !editorReadonly && !editorTabMovesFocus && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible && !inSnippetMode"
},
{
"command": "markdowntable.prevCell",
"key": "shift+tab",
"when": "editorLangId == mdx && editorTextFocus && !editorReadonly && !editorTabMovesFocus && !suggestWidgetMultipleSuggestions && !suggestWidgetVisible && !inSnippetMode"
}
],
"menus": {
Expand Down Expand Up @@ -134,6 +155,41 @@
"when": "editorLangId == markdown",
"command": "markdowntable.alignRight",
"group": "markdowntable@7"
},
{
"when": "editorLangId == mdx",
"command": "markdowntable.format",
"group": "markdowntable@1"
},
{
"when": "editorLangId == mdx && editorHasSelection",
"command": "markdowntable.tsvToTable",
"group": "markdowntable@2"
},
{
"when": "editorLangId == mdx && !editorHasSelection",
"command": "markdowntable.insertRight",
"group": "markdowntable@3"
},
{
"when": "editorLangId == mdx && !editorHasSelection",
"command": "markdowntable.insertLeft",
"group": "markdowntable@4"
},
{
"when": "editorLangId == mdx",
"command": "markdowntable.alignLeft",
"group": "markdowntable@5"
},
{
"when": "editorLangId == mdx",
"command": "markdowntable.alignCenter",
"group": "markdowntable@6"
},
{
"when": "editorLangId == mdx",
"command": "markdowntable.alignRight",
"group": "markdowntable@7"
}
]
},
Expand Down

0 comments on commit c4eeea1

Please sign in to comment.