From 2a1e7ad54ded48434362cff98c30749dd668c5fd Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 22 Nov 2023 16:25:11 +0100 Subject: [PATCH 1/2] rename submenu entry into jp-mainmenu-jupytext-pair --- .../packages/jupyterlab-jupytext-extension/schema/plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterlab/packages/jupyterlab-jupytext-extension/schema/plugin.json b/jupyterlab/packages/jupyterlab-jupytext-extension/schema/plugin.json index 2dcfc2b60..26881119e 100644 --- a/jupyterlab/packages/jupyterlab-jupytext-extension/schema/plugin.json +++ b/jupyterlab/packages/jupyterlab-jupytext-extension/schema/plugin.json @@ -82,7 +82,7 @@ { "type": "submenu", "submenu": { - "id": "jp-mainmenu-jupytext-new", + "id": "jp-mainmenu-jupytext-pair", "label": "Pair Notebook", "items": [ { From 4a367279bc13549fc7ac453d8e0ebca37331ae7d Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 22 Nov 2023 16:48:36 +0100 Subject: [PATCH 2/2] rename notebook into noteboook --- .../schema/plugin.json | 16 ++++++++-------- .../jupyterlab-jupytext-extension/src/index.ts | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/jupyterlab/packages/jupyterlab-jupytext-extension/schema/plugin.json b/jupyterlab/packages/jupyterlab-jupytext-extension/schema/plugin.json index 26881119e..1923667b8 100644 --- a/jupyterlab/packages/jupyterlab-jupytext-extension/schema/plugin.json +++ b/jupyterlab/packages/jupyterlab-jupytext-extension/schema/plugin.json @@ -32,7 +32,7 @@ "label": "New Text Notebook", "items": [ { - "command": "jupytext:create-new-text-noteboook-auto:percent", + "command": "jupytext:create-new-text-notebook-auto:percent", "rank": 1 }, { @@ -40,15 +40,15 @@ "rank": 2 }, { - "command": "jupytext:create-new-text-noteboook-auto:light", + "command": "jupytext:create-new-text-notebook-auto:light", "rank": 5 }, { - "command": "jupytext:create-new-text-noteboook-auto:hydrogen", + "command": "jupytext:create-new-text-notebook-auto:hydrogen", "rank": 10 }, { - "command": "jupytext:create-new-text-noteboook-auto:nomarker", + "command": "jupytext:create-new-text-notebook-auto:nomarker", "rank": 15 }, { @@ -56,11 +56,11 @@ "rank": 16 }, { - "command": "jupytext:create-new-text-noteboook-md", + "command": "jupytext:create-new-text-notebook-md", "rank": 20 }, { - "command": "jupytext:create-new-text-noteboook-md:myst", + "command": "jupytext:create-new-text-notebook-md:myst", "rank": 25 }, { @@ -68,11 +68,11 @@ "rank": 26 }, { - "command": "jupytext:create-new-text-noteboook-Rmd", + "command": "jupytext:create-new-text-notebook-Rmd", "rank": 30 }, { - "command": "jupytext:create-new-text-noteboook-qmd", + "command": "jupytext:create-new-text-notebook-qmd", "rank": 35 } ] diff --git a/jupyterlab/packages/jupyterlab-jupytext-extension/src/index.ts b/jupyterlab/packages/jupyterlab-jupytext-extension/src/index.ts index a700e7ed4..d887cdaf9 100644 --- a/jupyterlab/packages/jupyterlab-jupytext-extension/src/index.ts +++ b/jupyterlab/packages/jupyterlab-jupytext-extension/src/index.ts @@ -328,7 +328,7 @@ const extension: JupyterFrontEndPlugin = { // https://github.com/jupyterlab/jupyterlab/blob/c106f0a19110efad7c5e1b136144985819e21100/packages/notebook-extension/src/index.ts#L1902-L1965 jupytextTextNotebookFormats.forEach( (jupytextFormat: IJupytextFormat, rank: number) => { - const command = `jupytext:create-new-text-noteboook-${jupytextFormat.format}`; + const command = `jupytext:create-new-text-notebook-${jupytextFormat.format}`; const label = trans.__(jupytextFormat.label.split('with')[1].trim()); console.log('Registering text notebook command=', command); commands.addCommand(command, {