Add Open Notebook Folder functionality to Books viewlet. (#9939)

This commit is contained in:
Cory Rivera
2020-04-13 23:42:02 -07:00
committed by GitHub
parent a8cf029633
commit 2b2a275fb0
12 changed files with 224 additions and 74 deletions

View File

@@ -19,7 +19,7 @@
"properties": {
"notebook.maxBookSearchDepth": {
"type": "number",
"default": 5,
"default": 10,
"description": "%notebook.maxBookSearchDepth.description%"
},
"notebook.pythonPath": {
@@ -203,10 +203,23 @@
"light": "resources/light/open_notebook.svg"
}
},
{
"command": "notebook.command.openNotebookFolder",
"title": "%title.openNotebookFolder%",
"category": "%books-preview-category%",
"icon": {
"dark": "resources/dark/open_folder_inverse.svg",
"light": "resources/light/open_folder.svg"
}
},
{
"command": "notebook.command.closeBook",
"title": "%title.closeJupyterBook%"
},
{
"command": "notebook.command.closeNotebook",
"title": "%title.closeJupyterNotebook%"
},
{
"command": "notebook.command.createBook",
"title": "%title.createJupyterBook%",
@@ -317,6 +330,10 @@
"command": "notebook.command.closeBook",
"when": "false"
},
{
"command": "notebook.command.closeNotebook",
"when": "false"
},
{
"command": "notebook.command.revealInBooksViewlet",
"when": "false"
@@ -370,6 +387,10 @@
{
"command": "notebook.command.closeBook",
"when": "view == bookTreeView && viewItem == savedBook"
},
{
"command": "notebook.command.closeNotebook",
"when": "view == bookTreeView && viewItem == savedNotebook"
}
],
"view/title": [
@@ -381,6 +402,11 @@
{
"command": "notebook.command.createBook",
"when": "view == bookTreeView"
},
{
"command": "notebook.command.openNotebookFolder",
"when": "view == bookTreeView",
"group": "navigation"
}
],
"notebook/toolbar": [