Add search book icon (#7777)

This commit is contained in:
Chris LaFreniere
2019-10-17 17:20:07 -07:00
committed by GitHub
parent 268f9ef725
commit 80d46fb8a4
3 changed files with 17 additions and 2 deletions

View File

@@ -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",