From 661efcf23fbe65777f704bb81787eba3d36e4535 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Mon, 26 Feb 2024 20:40:37 +0100 Subject: [PATCH] Update commands --- package.json | 12 ++++++++---- src/commands/Settings.ts | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 3895eaa7..95d346b6 100644 --- a/package.json +++ b/package.json @@ -2476,6 +2476,14 @@ "command": "frontMatter.collapseSections", "when": "false" }, + { + "command": "frontMatter.insertTags", + "when": "false" + }, + { + "command": "frontMatter.insertCategories", + "when": "false" + }, { "command": "frontMatter.registerFolder", "when": "false" @@ -2572,10 +2580,6 @@ "command": "frontMatter.insertCategories", "when": "frontMatter:file:isValid == true" }, - { - "command": "frontMatter.insertTags", - "when": "frontMatter:file:isValid == true" - }, { "command": "frontMatter.preview", "when": "frontMatter:file:isValid == true" diff --git a/src/commands/Settings.ts b/src/commands/Settings.ts index 61a3a0c7..a125ca4b 100644 --- a/src/commands/Settings.ts +++ b/src/commands/Settings.ts @@ -18,8 +18,8 @@ export class Settings { const taxonomy = type === TaxonomyType.Tag ? 'tag' : 'category'; const newOption = await vscode.window.showInputBox({ - prompt: l10n.t(LocalizationKey.commandsFoldersCreateInputPrompt, taxonomy), - placeHolder: l10n.t(LocalizationKey.commandsFoldersCreateInputPlaceholder, taxonomy), + prompt: l10n.t(LocalizationKey.commandsSettingsCreateInputPrompt, taxonomy), + placeHolder: l10n.t(LocalizationKey.commandsSettingsCreateInputPlaceholder, taxonomy), ignoreFocusOut: true });