Run and Add Cell keybinding support (#3896)

- As part of this, fixed bug in the insertCell API where it didn't add to the end / failed if no cells existed
This commit is contained in:
Kevin Cunnane
2019-02-04 14:02:15 -08:00
committed by GitHub
parent 15929e8cf2
commit 2fce771214
12 changed files with 185 additions and 34 deletions

View File

@@ -45,6 +45,18 @@
"dark": "resources/dark/open_notebook_inverse.svg",
"light": "resources/light/open_notebook.svg"
}
},
{
"command": "notebook.command.runactivecell",
"title": "%notebook.command.runactivecell%"
},
{
"command": "notebook.command.addcode",
"title": "%notebook.command.addcode%"
},
{
"command": "notebook.command.addtext",
"title": "%notebook.command.addtext%"
}
],
"menus": {
@@ -54,6 +66,18 @@
},
{
"command": "notebook.command.open"
},
{
"command": "notebook.command.runactivecell",
"when": "notebookEditorVisible"
},
{
"command": "notebook.command.addcode",
"when": "notebookEditorVisible"
},
{
"command": "notebook.command.addtext",
"when": "notebookEditorVisible"
}
],
"objectExplorer/item/context": [
@@ -68,6 +92,21 @@
{
"command": "notebook.command.new",
"key": "Ctrl+Shift+N"
},
{
"command": "notebook.command.runactivecell",
"key": "F5",
"when": "notebookEditorVisible"
},
{
"command": "notebook.command.addcode",
"key": "Ctrl+Shift+C",
"when": "notebookEditorVisible"
},
{
"command": "notebook.command.addtext",
"key": "Ctrl+Shift+T",
"when": "notebookEditorVisible"
}
]
},