From 7b74f624c5f3489d2b0037d52460b61e6adcbf26 Mon Sep 17 00:00:00 2001 From: Vinicius Feitosa da Silva Date: Sat, 27 Jul 2024 02:53:44 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=86=95=20Add=20option=20to=20create=20new?= =?UTF-8?q?=20notes=20from=20Explorer=20#1376?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/foam-vscode/package.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/foam-vscode/package.json b/packages/foam-vscode/package.json index b7d5f06bc..8078756bd 100644 --- a/packages/foam-vscode/package.json +++ b/packages/foam-vscode/package.json @@ -287,6 +287,13 @@ "command": "foam-vscode.completion-move-cursor", "when": "false" } + ], + "explorer/context": [ + { + "command": "foam-vscode.create-note-from-template", + "when": "config.foam.files.showNewNoteInExplorer", + "group": "navigation" + } ] }, "commands": [ @@ -642,6 +649,11 @@ "type": "object", "description": "Custom graph styling settings. An example is present in the documentation.", "default": {} + }, + "foam.files.showNewNoteInExplorer": { + "type": "boolean", + "default": true, + "description": "Show the option to create a new note in the Explorer context menu." } } },