From e28a3935667d9455c02f9847cd710bd1840f4e72 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Fri, 12 Jun 2020 17:01:57 -0700 Subject: [PATCH] Add shortcuts for cut, copy, paste and split cells (#12338) For #10496 Jupyter keyboard shorcuts for cut, copy, paste & split cells --- package.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/package.json b/package.json index 48df52393e72..165c12e3fa7f 100644 --- a/package.json +++ b/package.json @@ -183,6 +183,37 @@ "key": "Z", "when": "notebookEditorFocused && !inputFocus", "command": "notebook.undo" + }, + { + "mac": "C", + "win": "C", + "linux": "C", + "key": "C", + "when": "notebookEditorFocused && !inputFocus", + "command": "notebook.cell.copy" + }, + { + "mac": "X", + "win": "X", + "linux": "X", + "key": "X", + "when": "notebookEditorFocused && !inputFocus", + "command": "notebook.cell.cut" + }, + { + "mac": "V", + "win": "V", + "linux": "V", + "key": "V", + "when": "notebookEditorFocused && !inputFocus", + "command": "notebook.cell.paste" + }, + { + "mac": "ctrl+shift+-", + "win": "ctrl+shift+-", + "linux": "ctrl+shift+-", + "when": "editorTextFocus && inputFocus && notebookEditorFocused", + "command": "notebook.cell.split" } ], "commands": [