Skip to content

Commit

Permalink
Merge pull request #290 from kasecato/#281/notebook_exe
Browse files Browse the repository at this point in the history
Fixed #281 that enabled notebook execute
  • Loading branch information
kasecato authored Apr 4, 2023
2 parents 403f9c2 + 06a8bed commit 882edca
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,20 @@
"when": "editorTextFocus && !editorReadonly",
"intellij": "Start new line before current"
},
{
"key": "alt+ctrl+enter",
"mac": "ctrl+enter",
"command": "notebook.cell.execute",
"when": "notebookCellListFocused && notebookMissingKernelExtension && !notebookCellExecuting && notebookCellType == 'code' || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelCount > 0 || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelSourceCount > 0",
"notebook": "To keep Notebook key bindings"
},
{
"key": "alt+ctrl+enter",
"mac": "ctrl+enter",
"command": "notebook.cell.quitEdit",
"when": "inputFocus && notebookEditorFocused && notebookCellType == 'markup'",
"notebook": "To keep Notebook key bindings"
},
{
"key": "shift+ctrl+enter",
"mac": "shift+cmd+enter",
Expand Down
14 changes: 14 additions & 0 deletions src/package-with-comment.json
Original file line number Diff line number Diff line change
Expand Up @@ -1819,6 +1819,20 @@
"when": "editorTextFocus && !editorReadonly",
"intellij": "Start new line before current"
},
{
"key": "alt+ctrl+enter",
"mac": "ctrl+enter",
"command": "notebook.cell.execute",
"when": "notebookCellListFocused && notebookMissingKernelExtension && !notebookCellExecuting && notebookCellType == 'code' || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelCount > 0 || notebookCellListFocused && !notebookCellExecuting && notebookCellType == 'code' && notebookKernelSourceCount > 0",
"notebook": "To keep Notebook key bindings"
},
{
"key": "alt+ctrl+enter",
"mac": "ctrl+enter",
"command": "notebook.cell.quitEdit",
"when": "inputFocus && notebookEditorFocused && notebookCellType == 'markup'",
"notebook": "To keep Notebook key bindings"
},
{
"key": "shift+ctrl+enter",
"mac": "shift+cmd+enter",
Expand Down

0 comments on commit 882edca

Please sign in to comment.