From 882b79ced6256dd0300d78c0cca6daae90d795d4 Mon Sep 17 00:00:00 2001 From: Grant Skinner Date: Tue, 26 May 2020 11:06:41 -0600 Subject: [PATCH] Change Export Selected key shortcut Windows 10 has a recent known issue with ctrl-alt-shift-f --- CHANGELOG.md | 2 +- README.md | 4 ++-- manifest.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c87b18b..fe993bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - added robust 'Combine Shapes' feature on Groups - check for reserved words in widget / param names - warning for negative grid spacing -- keyboard shortcut for export selected widget (cmd/ctrl-opt-shift-f) +- keyboard shortcut for export selected widget (cmd/ctrl-shift-d) - keyboard shortcut for copy to clipboard (cmd/ctrl-opt-c) - note in example README that it should use the dev channel of Flutter diff --git a/README.md b/README.md index cd26a19..3052fb9 100644 --- a/README.md +++ b/README.md @@ -56,13 +56,13 @@ There are two primary ways you can work with it: ## Copy and paste -If you select any item in XD (except an Artboard or Component), you can click the "Copy Selected" button in the plugin panel to copy Dart code to your clipboard. You can then paste it into your project directly. +If you select any item in XD (except an Artboard or Component), you can click the "Copy Selected" button or menu item (`cmd/ctrl-opt-C`) in the plugin panel to copy Dart code to your clipboard. You can then paste it into your project directly. ## Export widgets Artboards and Components can be exported as Flutter widgets that can be used in your project. -Select an artboard or component and click the "Export Widget" button. If you haven't already done so, you will be prompted to select your Flutter project's directory. The exported widget will be written to a dart file in the directory specified by the Code Path setting (defaults to "lib"). You can now instantiate and use that widget in your Flutter project. +Select an artboard or component and click the "Export Widget" button or menu item (`cmd/ctrl-shift-D`). If you haven't already done so, you will be prompted to select your Flutter project's directory. The exported widget will be written to a dart file in the directory specified by the Code Path setting (defaults to "lib"). You can now instantiate and use that widget in your Flutter project. Use the "Export All Widgets" button or menu item (`cmd/ctrl-shift-F`) to export all artboards and components in the file that do not have "Include In Export All Widgets" unchecked. diff --git a/manifest.json b/manifest.json index dd4300d..abae732 100644 --- a/manifest.json +++ b/manifest.json @@ -38,8 +38,8 @@ "label": "Export Selected Widget", "commandId": "exportSelected", "shortcut": { - "mac": "Cmd+Shift+Alt+F", - "win": "Ctrl+Shift+Alt+F" + "mac": "Cmd+Shift+D", + "win": "Ctrl+Shift+D" } }, {