Skip to content

Commit

Permalink
Added Ctrl+Shift+L shortcut for the Speech Markdown SSML Preview command
Browse files Browse the repository at this point in the history
  • Loading branch information
johniwasz committed Jul 14, 2020
1 parent c72f0f2 commit 8b9437b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Speech Markdown outputs platform-compatible Speech Synthesis Markup Language (SS

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

For those that prefer keyboard shortcuts, use Ctrl+Shift+L.

<img src="https://raw.githubusercontent.com/speechmarkdown/speechmarkdown-vscode/master/images/markdownpref.gif" width="75%" alt="Speech Markdown Preview"/>


Expand Down
Binary file modified images/markdownpref.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,24 @@
"path": "./snippets.json"
}
],
"keybindings": [
{
"command": "extension.speechmarkdownpreview",
"key": "ctrl+shift+l",
"when": "editorHasSelection"
}
],
"commands": [
{
"command": "extension.speechmarkdown",
"title": "Speech Markdown to SSML"

"command": "extension.speechmarkdownpreview",
"title": "Speech Markdown to SSML",
"category": "Speech Markdown"
}
],
"menus": {
"editor/context": [
{
"command": "extension.speechmarkdown",
"command": "extension.speechmarkdownpreview",
"group": "speechmarkdown@1",
"when": "editorHasSelection"
}
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function activate(context: vscode.ExtensionContext) {
var outProv = new smdOutputProvider();

context.subscriptions.push(
vscode.commands.registerCommand('extension.speechmarkdown', () => {
vscode.commands.registerCommand('extension.speechmarkdownpreview', () => {
const editor = vscode.window.activeTextEditor;
if (editor !== undefined) {

Expand Down

0 comments on commit 8b9437b

Please sign in to comment.