Skip to content

Commit

Permalink
Fixed #281 that enabled notebook execute
Browse files Browse the repository at this point in the history
  • Loading branch information
kasecato committed Apr 4, 2023
1 parent 403f9c2 commit 06a8bed
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 06a8bed

Please sign in to comment.