Skip to content

Commit

Permalink
remove default key bindings, #111, #112, #118
Browse files Browse the repository at this point in the history
  • Loading branch information
qjebbs committed Nov 25, 2021
1 parent aceb2d7 commit b210d85
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 136 deletions.
54 changes: 30 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,30 +111,36 @@ See all available settings for
[joshbax.mdhelper](https://marketplace.visualstudio.com/items?itemName=joshbax.mdhelper),
but totally new implements.

| Command | Keyboard Shortcut |
| ----------------------------- | ----------------------------- |
| Format: Toggle Bold | Ctrl+B |
| Format: Toggle Italics | Ctrl+I |
| Format: Toggle Underline | Ctrl+U |
| Format: Toggle Mark | Ctrl+M |
| Format: Toggle Strikethrough | Alt+S |
| Format: Toggle Code Inline | Alt+` |
| Format: Toggle Code Block | Alt+Shift+` |
| Format: Toggle Block Quote | Ctrl+Shift+Q |
| Format: Toggle Superscript | Ctrl+Shift+U |
| Format: Toggle Subscript | Ctrl+Shift+L |
| Format: Toggle Unordered List | Ctrl+L, Ctrl+U |
| Format: Toggle Ordered List | Ctrl+L, Ctrl+O |
| Table: Paste as Table | Ctrl+Shift+T, Ctrl+Shift+P |
| Table: Format Table | Ctrl+Shift+T, Ctrl+Shift+F |
| Table: Add Columns to Left | Ctrl+Shift+T, Ctrl+Shift+L |
| Table: Add Columns to Right | Ctrl+Shift+T, Ctrl+Shift+R |
| Table: Add Rows Above | Ctrl+Shift+T, Ctrl+Shift+A |
| Table: Add Row Below | Ctrl+Shift+T, Ctrl+Shift+B |
| Table: Move Columns Left | Ctrl+Shift+T Ctrl+Shift+Left |
| Table: Move Columns Right | Ctrl+Shift+T Ctrl+Shift+Right |
| Table: Delete Rows | Ctrl+Shift+D, Ctrl+Shift+R |
| Table: Delete Columns | Ctrl+Shift+D, Ctrl+Shift+C |
Default Keyboard Shortcut bindings are removed due to conflict issues on platforms, please consider:
>
- Switch to use command palette
- Switch to use [Snippets](#Snippets)
- Setup key bindings on your own

| Command | Keyboard Shortcut |
| ----------------------------- | --------------------------------- |
| Format: Toggle Bold | ~~Ctrl+B~~ |
| Format: Toggle Italics | ~~Ctrl+I~~ |
| Format: Toggle Underline | ~~Ctrl+U~~ |
| Format: Toggle Mark | ~~Ctrl+M~~ |
| Format: Toggle Strikethrough | ~~Alt+S~~ |
| Format: Toggle Code Inline | ~~Alt+`~~ |
| Format: Toggle Code Block | ~~Alt+Shift+`~~ |
| Format: Toggle Block Quote | ~~Ctrl+Shift+Q~~ |
| Format: Toggle Superscript | ~~Ctrl+Shift+U~~ |
| Format: Toggle Subscript | ~~Ctrl+Shift+L~~ |
| Format: Toggle Unordered List | ~~Ctrl+L, Ctrl+U~~ |
| Format: Toggle Ordered List | ~~Ctrl+L, Ctrl+O~~ |
| Table: Paste as Table | ~~Ctrl+Shift+T, Ctrl+Shift+P~~ |
| Table: Format Table | ~~Ctrl+Shift+T, Ctrl+Shift+F~~ |
| Table: Add Columns to Left | ~~Ctrl+Shift+T, Ctrl+Shift+L~~ |
| Table: Add Columns to Right | ~~Ctrl+Shift+T, Ctrl+Shift+R~~ |
| Table: Add Rows Above | ~~Ctrl+Shift+T, Ctrl+Shift+A~~ |
| Table: Add Row Below | ~~Ctrl+Shift+T, Ctrl+Shift+B~~ |
| Table: Move Columns Left | ~~Ctrl+Shift+T Ctrl+Shift+Left~~ |
| Table: Move Columns Right | ~~Ctrl+Shift+T Ctrl+Shift+Right~~ |
| Table: Delete Rows | ~~Ctrl+Shift+D, Ctrl+Shift+R~~ |
| Table: Delete Columns | ~~Ctrl+Shift+D, Ctrl+Shift+C~~ |

> Looking for `Move Rows Up / Down`?
> You can use vscode built-in `Move Line Up / Down`, shortcuts are `alt+↑` and `alt+↓`
Expand Down
112 changes: 0 additions & 112 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,118 +224,6 @@
}
]
},
"keybindings": [
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.pasteAsTable",
"key": "ctrl+shift+t ctrl+shift+p"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.formateTable",
"key": "ctrl+shift+t ctrl+shift+f"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.toggleBold",
"key": "ctrl+b"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.toggleCodeBlock",
"key": "shift+alt+`"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.toggleBlockQuote",
"key": "ctrl+shift+q"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.toggleCodeInline",
"key": "alt+`"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.toggleItalics",
"key": "ctrl+i"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.toggleOList",
"key": "ctrl+l ctrl+o"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.toggleStrikethrough",
"key": "alt+s"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.toggleUList",
"key": "ctrl+l ctrl+u"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.toggleUnderLine",
"key": "ctrl+u"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.toggleMark",
"key": "ctrl+m"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.toggleSuperscript",
"key": "ctrl+shift+u"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.toggleSubscript",
"key": "ctrl+shift+l"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.addColumnRight",
"key": "ctrl+shift+t ctrl+shift+r"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.addColumnLeft",
"key": "ctrl+shift+t ctrl+shift+l"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.addRowBelow",
"key": "ctrl+shift+t ctrl+shift+b"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.addRowAbove",
"key": "ctrl+shift+t ctrl+shift+a"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.DeleteColumn",
"key": "ctrl+shift+d ctrl+shift+c"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.DeleteRow",
"key": "ctrl+shift+d ctrl+shift+r"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.MoveColumnLeft",
"key": "ctrl+shift+t ctrl+shift+left"
},
{
"when": "editorTextFocus && editorLangId == 'markdown'",
"command": "markdownExtended.MoveColumnRight",
"key": "ctrl+shift+t ctrl+shift+right"
}
],
"configuration": {
"type": "object",
"title": "Markdown Extended Configuration",
Expand Down

0 comments on commit b210d85

Please sign in to comment.