From e16a767c1a98352b189aa24b1047a5e9e6e7f79a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20S=C3=A1nchez?= Date: Sun, 19 May 2019 21:21:20 +0200 Subject: [PATCH] Add command to context menu --- packages/notebook-extension/src/index.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/notebook-extension/src/index.ts b/packages/notebook-extension/src/index.ts index 700a839ddb0e..a25cc964f4a3 100644 --- a/packages/notebook-extension/src/index.ts +++ b/packages/notebook-extension/src/index.ts @@ -782,26 +782,31 @@ function activateNotebookHandler( rank: 7 }); app.contextMenu.addItem({ - type: 'separator', + command: CommandIDs.merge, selector: '.jp-Notebook .jp-Cell', rank: 8 }); + app.contextMenu.addItem({ + type: 'separator', + selector: '.jp-Notebook .jp-Cell', + rank: 9 + }); // CodeCell context menu groups app.contextMenu.addItem({ command: CommandIDs.createOutputView, selector: '.jp-Notebook .jp-CodeCell', - rank: 9 + rank: 10 }); app.contextMenu.addItem({ type: 'separator', selector: '.jp-Notebook .jp-CodeCell', - rank: 10 + rank: 11 }); app.contextMenu.addItem({ command: CommandIDs.clearOutputs, selector: '.jp-Notebook .jp-CodeCell', - rank: 11 + rank: 12 }); // Notebook context menu groups