Removed the default value from designated note setting (as per remark from review https://github.com/obsidianmd/obsidian-releases/pull/1173#issuecomment-1273788109)

This commit is contained in:
SebastianMC 2022-10-10 23:33:32 +02:00
parent d672df6303
commit 29f3a16dce
1 changed files with 3 additions and 3 deletions

View File

@ -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();
}));