|
70 | 70 | "key": "escape", |
71 | 71 | "when": "isCompositeNotebook && !editorHoverVisible && !suggestWidgetVisible && !isComposing && !inSnippetMode && !exceptionWidgetVisible && !selectionAnchorSet && !LinkedEditingInputVisible && !renameInputVisible && !editorHasSelection && !accessibilityHelpWidgetVisible && !breakpointWidgetVisible && !findWidgetVisible && !markersNavigationVisible && !parameterHintsVisible && !editorHasMultipleSelections && !notificationToastsVisible && !notebookEditorFocused && !inlineChatVisible", |
72 | 72 | "command": "interactive.input.clear" |
| 73 | + }, |
| 74 | + { |
| 75 | + "key": "cmd+enter", |
| 76 | + "mac": "cmd+enter", |
| 77 | + "win": "ctrl+enter", |
| 78 | + "linux": "ctrl+enter", |
| 79 | + "when": "notebookEditorFocused && !findInputFocussed && !replaceInputFocussed", |
| 80 | + "command": "jupyter.notebookeditor.runfocusedcell" |
73 | 81 | } |
74 | 82 | ], |
75 | 83 | "commands": [ |
|
544 | 552 | "category": "Notebook", |
545 | 553 | "enablement": "!jupyter.webExtension" |
546 | 554 | }, |
| 555 | + { |
| 556 | + "command": "jupyter.notebookeditor.runfocusedcell", |
| 557 | + "title": "%jupyter.command.jupyter.notebookeditor.runfocusedcell.title%", |
| 558 | + "category": "Notebook", |
| 559 | + "enablement": "notebookEditorFocused" |
| 560 | + }, |
547 | 561 | { |
548 | 562 | "command": "jupyter.expandallcells", |
549 | 563 | "title": "%jupyter.command.jupyter.expandallcells.title%", |
|
714 | 728 | { |
715 | 729 | "id": "editor.interactiveWindow.context", |
716 | 730 | "label": "%jupyter.command.editor.interactiveWindow.context.label%" |
| 731 | + }, |
| 732 | + { |
| 733 | + "id": "deepnote.explorer.context", |
| 734 | + "label": "Deepnote" |
717 | 735 | } |
718 | 736 | ], |
719 | 737 | "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 | + ], |
720 | 755 | "editor/context": [ |
721 | 756 | { |
722 | 757 | "submenu": "editor.interactiveWindow.context", |
|
765 | 800 | "when": "editorFocus && editorLangId == python && !notebookEditorFocused && isWorkspaceTrusted" |
766 | 801 | } |
767 | 802 | ], |
| 803 | + "deepnote.explorer.context": [ |
| 804 | + { |
| 805 | + "command": "deepnote.newProject" |
| 806 | + }, |
| 807 | + { |
| 808 | + "command": "deepnote.importNotebook" |
| 809 | + } |
| 810 | + ], |
768 | 811 | "editor/title": [ |
769 | 812 | { |
770 | 813 | "command": "jupyter.restartkernel", |
|
937 | 980 | } |
938 | 981 | ], |
939 | 982 | "explorer/context": [ |
| 983 | + { |
| 984 | + "submenu": "deepnote.explorer.context", |
| 985 | + "when": "isWorkspaceTrusted", |
| 986 | + "group": "navigation@10" |
| 987 | + }, |
940 | 988 | { |
941 | 989 | "when": "resourceLangId == python && !notebookEditorFocused && isWorkspaceTrusted", |
942 | 990 | "command": "jupyter.runFileInteractive", |
|
0 commit comments