Skip to content

Commit e683e42

Browse files
authored
feat: Add Deepnote commands to view title bar and explorer context menu (#131)
* feat: Add Deepnote commands to view title bar and explorer context menu * feat: tweak position
1 parent c85f4fb commit e683e42

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

package.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,9 +728,30 @@
728728
{
729729
"id": "editor.interactiveWindow.context",
730730
"label": "%jupyter.command.editor.interactiveWindow.context.label%"
731+
},
732+
{
733+
"id": "deepnote.explorer.context",
734+
"label": "Deepnote"
731735
}
732736
],
733737
"menus": {
738+
"view/title": [
739+
{
740+
"command": "deepnote.newProject",
741+
"when": "view == deepnoteExplorer",
742+
"group": "navigation@1"
743+
},
744+
{
745+
"command": "deepnote.importNotebook",
746+
"when": "view == deepnoteExplorer",
747+
"group": "navigation@2"
748+
},
749+
{
750+
"command": "deepnote.refreshExplorer",
751+
"when": "view == deepnoteExplorer",
752+
"group": "navigation@3"
753+
}
754+
],
734755
"editor/context": [
735756
{
736757
"submenu": "editor.interactiveWindow.context",
@@ -779,6 +800,14 @@
779800
"when": "editorFocus && editorLangId == python && !notebookEditorFocused && isWorkspaceTrusted"
780801
}
781802
],
803+
"deepnote.explorer.context": [
804+
{
805+
"command": "deepnote.newProject"
806+
},
807+
{
808+
"command": "deepnote.importNotebook"
809+
}
810+
],
782811
"editor/title": [
783812
{
784813
"command": "jupyter.restartkernel",
@@ -951,6 +980,11 @@
951980
}
952981
],
953982
"explorer/context": [
983+
{
984+
"submenu": "deepnote.explorer.context",
985+
"when": "isWorkspaceTrusted",
986+
"group": "navigation@10"
987+
},
954988
{
955989
"when": "resourceLangId == python && !notebookEditorFocused && isWorkspaceTrusted",
956990
"command": "jupyter.runFileInteractive",

0 commit comments

Comments
 (0)