19 - Less confusing description and handling of the `designated note` settings

- added comments for clarity
This commit is contained in:
SebastianMC 2022-10-13 09:29:18 +02:00
parent 426eb789da
commit 4cfe62afe8
1 changed files with 3 additions and 3 deletions

View File

@ -84,9 +84,9 @@ export default class CustomSortPlugin extends Plugin {
// - the file explicitly indicated in documentation, by default Inbox/Inbox.md // - the file explicitly indicated in documentation, by default Inbox/Inbox.md
if (aFile.name === SORTSPEC_FILE_NAME || if (aFile.name === SORTSPEC_FILE_NAME ||
aFile.basename === parent.name || aFile.basename === parent.name ||
aFile.basename === this.settings.additionalSortspecFile || aFile.basename === this.settings.additionalSortspecFile || // (A) 'Inbox/sort' === setting 'Inbox/sort'
aFile.path === this.settings.additionalSortspecFile || aFile.path === this.settings.additionalSortspecFile || // (B) 'Inbox/sort.md' === setting 'Inbox/sort.md'
aFile.path === this.settings.additionalSortspecFile + '.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] const sortingSpecTxt: string = mCache.getCache(aFile.path)?.frontmatter?.[SORTINGSPEC_YAML_KEY]
if (sortingSpecTxt) { if (sortingSpecTxt) {