Skip to content

Commit 8b9437b

Browse files
committed
Added Ctrl+Shift+L shortcut for the Speech Markdown SSML Preview command
1 parent c72f0f2 commit 8b9437b

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Speech Markdown outputs platform-compatible Speech Synthesis Markup Language (SS
2727

2828
The resulting SSML is displayed in the Speech Markdown output channel.
2929

30+
For those that prefer keyboard shortcuts, use Ctrl+Shift+L.
31+
3032
<img src="https://raw.githubusercontent.com/speechmarkdown/speechmarkdown-vscode/master/images/markdownpref.gif" width="75%" alt="Speech Markdown Preview"/>
3133

3234

images/markdownpref.gif

-1.54 MB
Loading

package.json

+11-4
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,24 @@
6363
"path": "./snippets.json"
6464
}
6565
],
66+
"keybindings": [
67+
{
68+
"command": "extension.speechmarkdownpreview",
69+
"key": "ctrl+shift+l",
70+
"when": "editorHasSelection"
71+
}
72+
],
6673
"commands": [
6774
{
68-
"command": "extension.speechmarkdown",
69-
"title": "Speech Markdown to SSML"
70-
75+
"command": "extension.speechmarkdownpreview",
76+
"title": "Speech Markdown to SSML",
77+
"category": "Speech Markdown"
7178
}
7279
],
7380
"menus": {
7481
"editor/context": [
7582
{
76-
"command": "extension.speechmarkdown",
83+
"command": "extension.speechmarkdownpreview",
7784
"group": "speechmarkdown@1",
7885
"when": "editorHasSelection"
7986
}

src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function activate(context: vscode.ExtensionContext) {
1717
var outProv = new smdOutputProvider();
1818

1919
context.subscriptions.push(
20-
vscode.commands.registerCommand('extension.speechmarkdown', () => {
20+
vscode.commands.registerCommand('extension.speechmarkdownpreview', () => {
2121
const editor = vscode.window.activeTextEditor;
2222
if (editor !== undefined) {
2323

0 commit comments

Comments
 (0)