mirror of
https://github.com/We-Dont-Byte/Mind_Reader.git
synced 2024-11-15 03:35:59 +00:00
Add keybinds for all important menu items
Some functions are not exposed by vscode on startup, so we must wrap them.
This commit is contained in:
parent
95dfce9d77
commit
b7679b1de2
36
package.json
36
package.json
@ -233,23 +233,27 @@
|
|||||||
"keybindings": [
|
"keybindings": [
|
||||||
{
|
{
|
||||||
"command": "accessActions.focus",
|
"command": "accessActions.focus",
|
||||||
|
"comment": "This opens the Access Actions menu",
|
||||||
"key": "Ctrl+Shift+/ Ctrl+Shift+/",
|
"key": "Ctrl+Shift+/ Ctrl+Shift+/",
|
||||||
"mac": "Cmc+Shift+[Slash] Cmc+Shift+[Slash]"
|
"mac": "Cmc+Shift+[Slash] Cmc+Shift+[Slash]"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "editor.action.fontZoomOut",
|
"command": "mind-reader.decreaseFontScale",
|
||||||
"key": "Shift+Alt+z -",
|
"key": "Shift+Alt+Z -",
|
||||||
"when": "editorTextFocus && config.mind-reader.reader.screenReader != JAWS"
|
"mac": "Cmd+Shift+Z -",
|
||||||
|
"when": "editorTextFocus"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "editor.action.fontZoomIn",
|
"command": "mind-reader.increaseFontScale",
|
||||||
"key": "Shift+Alt+z =",
|
"key": "Shift+Alt+Z =",
|
||||||
"when": "editorTextFocus && config.mind-reader.reader.screenReader != JAWS"
|
"mac": "Cmd+Shift+Z =",
|
||||||
|
"when": "editorTextFocus"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "editor.action.fontZoomReset",
|
"command": "mind-reader.resetFontScale",
|
||||||
"key": "Shift+Alt+z 0",
|
"key": "Shift+Alt+Z 0",
|
||||||
"when": "editorTextFocus && config.mind-reader.reader.screenReader != JAWS"
|
"mac": "Cmd+Shift+Z 0",
|
||||||
|
"when": "editorTextFocus"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "mind-reader.getIndent",
|
"command": "mind-reader.getIndent",
|
||||||
@ -261,8 +265,7 @@
|
|||||||
"command": "mind-reader.getLeadingSpaces",
|
"command": "mind-reader.getLeadingSpaces",
|
||||||
"key": "Ctrl+Shift+/ S",
|
"key": "Ctrl+Shift+/ S",
|
||||||
"mac": "Cmd+Shift+[Slash] S",
|
"mac": "Cmd+Shift+[Slash] S",
|
||||||
"when": "editorTextFocus",
|
"when": "editorTextFocus && editorLangId == python"
|
||||||
"comment": "Requires python language"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "mind-reader.getLineNumber",
|
"command": "mind-reader.getLineNumber",
|
||||||
@ -289,7 +292,7 @@
|
|||||||
{
|
{
|
||||||
"command": "mind-reader.selectLeadingWhitespace",
|
"command": "mind-reader.selectLeadingWhitespace",
|
||||||
"key": "Ctrl+Shift+/ W",
|
"key": "Ctrl+Shift+/ W",
|
||||||
"mac": "Ctrl+Shift+[Slash] W"
|
"mac": "Cmd+Shift+[Slash] W"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"menus": {
|
"menus": {
|
||||||
@ -300,14 +303,13 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"mind-reader.editor.context": [
|
"mind-reader.editor.context": [
|
||||||
|
|
||||||
{
|
{
|
||||||
"command": "mind-reader.openKeybinds",
|
"command": "mind-reader.openKeybinds",
|
||||||
"group": "0_mind-reader@0",
|
"group": "0_mind-reader@0",
|
||||||
"when": "activeEditor"
|
"when": "activeEditor"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "mind-reader.selectTheme",
|
"command": "workbench.action.selectTheme",
|
||||||
"group": "0_mind-reader@1",
|
"group": "0_mind-reader@1",
|
||||||
"when": "activeEditor"
|
"when": "activeEditor"
|
||||||
},
|
},
|
||||||
@ -327,17 +329,17 @@
|
|||||||
"when": "activeEditor"
|
"when": "activeEditor"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "mind-reader.increaseEditorScale",
|
"command": "workbench.action.zoomIn",
|
||||||
"group": "2_mind-reader@0",
|
"group": "2_mind-reader@0",
|
||||||
"when": "activeEditor"
|
"when": "activeEditor"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "mind-reader.decreaseEditorScale",
|
"command": "workbench.action.zoomOut",
|
||||||
"group": "2_mind-reader@1",
|
"group": "2_mind-reader@1",
|
||||||
"when": "activeEditor"
|
"when": "activeEditor"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "mind-reader.resetEditorScale",
|
"command": "workbench.action.zoomReset",
|
||||||
"group": "2_mind-reader@2",
|
"group": "2_mind-reader@2",
|
||||||
"when": "activeEditor"
|
"when": "activeEditor"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user