diff --git a/extensions/notebook/package.json b/extensions/notebook/package.json index b5cb19d0ee..74e4f4d454 100644 --- a/extensions/notebook/package.json +++ b/extensions/notebook/package.json @@ -152,8 +152,8 @@ "command": "notebook.command.searchBook", "title": "%title.searchJupyterBook%", "icon": { - "dark": "resources/dark/manage_inverse.svg", - "light": "resources/light/manage.svg" + "dark": "resources/dark/search_inverse.svg", + "light": "resources/light/search.svg" } } ], @@ -268,6 +268,11 @@ } ], "view/item/context": [ + { + "command": "notebook.command.searchBook", + "when": "view =~ /^(untitledBookTreeView|bookTreeView)$/ && viewItem =~ /^(untitledBook|savedBook)$/ && notebookQuality != stable", + "group": "inline" + }, { "command": "notebook.command.saveBook", "when": "view == untitledBookTreeView && viewItem == untitledBook && untitledBooks && notebookQuality != stable", diff --git a/extensions/notebook/resources/dark/search_inverse.svg b/extensions/notebook/resources/dark/search_inverse.svg new file mode 100644 index 0000000000..44e93b4743 --- /dev/null +++ b/extensions/notebook/resources/dark/search_inverse.svg @@ -0,0 +1,5 @@ + + opac_command_icons_bv + + + diff --git a/extensions/notebook/resources/light/search.svg b/extensions/notebook/resources/light/search.svg new file mode 100644 index 0000000000..caf9b497e7 --- /dev/null +++ b/extensions/notebook/resources/light/search.svg @@ -0,0 +1,5 @@ + + opac_command_icons_bv + + +