From 6c29bd35c19913b7a270e78fc6902555d519a5a2 Mon Sep 17 00:00:00 2001 From: pierwill Date: Fri, 6 Mar 2020 12:15:21 -0800 Subject: [PATCH] Add table of script editor keyboard shortcuts Closes #707 --- content/v2.0/visualize-data/explore-metrics.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/content/v2.0/visualize-data/explore-metrics.md b/content/v2.0/visualize-data/explore-metrics.md index 663a3af1e..27f28f3b3 100644 --- a/content/v2.0/visualize-data/explore-metrics.md +++ b/content/v2.0/visualize-data/explore-metrics.md @@ -94,9 +94,15 @@ The default time range is 5m. Click **Query Builder** to use the builder to create a Flux query. Click **Script Editor** to manually edit the query. -#### Add comments to your script +#### Keyboard shortcuts -In **Script Editor** mode, press `Control+/` to toggle between commenting a line out. +In **Script Editor** mode, the following keyboard shortcuts are available: + + +| Key | Description | +|--------------------------------|---------------------------------------------| +| `Control + /` (`⌘ + /` on Mac) | Comment/uncomment current or selected lines | +| `Control + Enter` | Submit query | ## Save your query as a dashboard cell or task