From 38839470ac1dc8476ce8138e87d22aea54b6f5a5 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Sun, 5 Feb 2023 14:31:25 +0100 Subject: [PATCH] #502 - Keyboard bindings added --- CHANGELOG.md | 2 ++ package.json | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 127aa216..056e985e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ - [#484](https://github.com/estruyf/vscode-front-matter/issues/484): Support for overriding scripts per environment type - [#494](https://github.com/estruyf/vscode-front-matter/issues/494): Support for external image URLs in previews - [#497](https://github.com/estruyf/vscode-front-matter/issues/497): Support for movie media previews in the content dashboard +- [#502](https://github.com/estruyf/vscode-front-matter/issues/502): Keyboard bindings added to open dashboard, insert media, and insert snippet +- [#503](https://github.com/estruyf/vscode-front-matter/issues/503): Allow making changes to the preview URL in the webview ### ⚡️ Optimizations diff --git a/package.json b/package.json index bfbbd7c2..c27d5cf3 100644 --- a/package.json +++ b/package.json @@ -51,11 +51,28 @@ "activationEvents": [ "workspaceContains:**/.frontmatter", "workspaceContains:**/frontmatter.json", - "onView:frontMatter.explorer", "onStartupFinished" ], "main": "./dist/extension.js", "contributes": { + "keybindings": [ + { + "command": "frontMatter.dashboard", + "key": "alt+d" + }, + { + "command": "frontMatter.insertMedia", + "key": "ctrl+shift+i", + "mac": "cmd+shift+i", + "when": "editorTextFocus" + }, + { + "command": "frontMatter.insertSnippet", + "key": "ctrl+shift+v", + "mac": "cmd+shift+v", + "when": "editorTextFocus" + } + ], "viewsContainers": { "activitybar": [ {