From 38b3a1788b2bb285aadccfcaa9b6a5f8fb9d8562 Mon Sep 17 00:00:00 2001 From: Jerome Luckenbach Date: Mon, 11 Nov 2019 20:35:07 +0100 Subject: [PATCH] Added copy and doc commands to item commands. (#177) Signed-off-by: Jerome Luckenbach --- package.json | 22 ++++++++++++++++++++-- resources/dark/arrow_right.svg | 1 + resources/dark/http.svg | 1 + resources/light/arrow_right.svg | 1 + resources/light/http.svg | 1 + 5 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 resources/dark/arrow_right.svg create mode 100644 resources/dark/http.svg create mode 100644 resources/light/arrow_right.svg create mode 100644 resources/light/http.svg diff --git a/package.json b/package.json index aa3b3f8..ef112d3 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,11 @@ }, { "command": "openhab.command.things.addItems", - "title": "Create Items from Channels" + "title": "Create Items from Channels", + "icon": { + "light": "resources/light/arrow_right.svg", + "dark": "resources/dark/arrow_right.svg" + } }, { "command": "openhab.command.things.copyUID", @@ -89,7 +93,11 @@ }, { "command": "openhab.command.things.docs", - "title": "Binding documentation" + "title": "Binding documentation", + "icon": { + "light": "resources/light/http.svg", + "dark": "resources/dark/http.svg" + } }, { "command": "openhab.openConsole", @@ -265,6 +273,11 @@ "command": "openhab.command.things.addItems", "when": "view == openhabThings" }, + { + "command": "openhab.command.things.addItems", + "when": "view == openhabThings", + "group": "inline" + }, { "command": "openhab.command.things.copyUID", "when": "view == openhabThings" @@ -272,6 +285,11 @@ { "command": "openhab.command.things.docs", "when": "view == openhabThings && viewItem == thing" + }, + { + "command": "openhab.command.things.docs", + "when": "view == openhabThings && viewItem == thing", + "group": "inline" } ], "view/title": [ diff --git a/resources/dark/arrow_right.svg b/resources/dark/arrow_right.svg new file mode 100644 index 0000000..5d78532 --- /dev/null +++ b/resources/dark/arrow_right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/dark/http.svg b/resources/dark/http.svg new file mode 100644 index 0000000..24ca4ae --- /dev/null +++ b/resources/dark/http.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/light/arrow_right.svg b/resources/light/arrow_right.svg new file mode 100644 index 0000000..8f8a019 --- /dev/null +++ b/resources/light/arrow_right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/light/http.svg b/resources/light/http.svg new file mode 100644 index 0000000..05332d6 --- /dev/null +++ b/resources/light/http.svg @@ -0,0 +1 @@ + \ No newline at end of file