From 29f3a16dce2418f77a16675f549ead9302677adf Mon Sep 17 00:00:00 2001 From: SebastianMC Date: Mon, 10 Oct 2022 23:33:32 +0200 Subject: [PATCH] Removed the default value from designated note setting (as per remark from review https://github.com/obsidianmd/obsidian-releases/pull/1173#issuecomment-1273788109) --- src/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 020150f..b300e64 100644 --- a/src/main.ts +++ b/src/main.ts @@ -34,7 +34,7 @@ interface CustomSortPluginSettings { } const DEFAULT_SETTINGS: CustomSortPluginSettings = { - additionalSortspecFile: 'Inbox/Inbox.md', + additionalSortspecFile: '', suspended: true, // if false by default, it would be hard to handle the auto-parse after plugin install statusBarEntryEnabled: true, notificationsEnabled: true @@ -330,10 +330,10 @@ class CustomSortSettingTab extends PluginSettingTab { .setName('Path to the designated note containing sorting specification') .setDesc('The YAML front matter of this note will be scanned for sorting specification, in addition to the sortspec.md notes and folder notes. Remember to add the `.md` explicitly here.') .addText(text => text - .setPlaceholder('e.g. note.md') + .setPlaceholder('e.g. Inbox/Inbox.md') .setValue(this.plugin.settings.additionalSortspecFile) .onChange(async (value) => { - this.plugin.settings.additionalSortspecFile = normalizePath(value); + this.plugin.settings.additionalSortspecFile = value.trim() ? normalizePath(value) : ''; await this.plugin.saveSettings(); }));