From 4cfe62afe8733ab1a04414241ed51c06e56f4f8d Mon Sep 17 00:00:00 2001 From: SebastianMC Date: Thu, 13 Oct 2022 09:29:18 +0200 Subject: [PATCH] 19 - Less confusing description and handling of the `designated note` settings - added comments for clarity --- src/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 8384041..541fbba 100644 --- a/src/main.ts +++ b/src/main.ts @@ -84,9 +84,9 @@ export default class CustomSortPlugin extends Plugin { // - the file explicitly indicated in documentation, by default Inbox/Inbox.md if (aFile.name === SORTSPEC_FILE_NAME || aFile.basename === parent.name || - aFile.basename === this.settings.additionalSortspecFile || - aFile.path === this.settings.additionalSortspecFile || - aFile.path === this.settings.additionalSortspecFile + '.md' + aFile.basename === this.settings.additionalSortspecFile || // (A) 'Inbox/sort' === setting 'Inbox/sort' + aFile.path === this.settings.additionalSortspecFile || // (B) 'Inbox/sort.md' === setting 'Inbox/sort.md' + aFile.path === this.settings.additionalSortspecFile + '.md' // (C) 'Inbox/sort.md.md' === setting 'Inbox/sort.md' ) { const sortingSpecTxt: string = mCache.getCache(aFile.path)?.frontmatter?.[SORTINGSPEC_YAML_KEY] if (sortingSpecTxt) {