19 - Less confusing description and handling of the `designated note` settings
- added comments for clarity
This commit is contained in:
parent
426eb789da
commit
4cfe62afe8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue