Bugfix - custom designated file of sorting config was ignored, the default Inbox/Inbox.md was always used instead

This commit is contained in:
SebastianMC 2022-09-14 11:09:19 +02:00
parent c01d069829
commit fd8dfa1fcd
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ export default class CustomSortPlugin extends Plugin {
// - files with designated name (sortspec.md by default)
// - files with the same name as parent folders (aka folder notes): References/References.md
// - the file explicitly indicated in documentation, by default Inbox/Inbox.md
if (aFile.name === SORTSPEC_FILE_NAME || aFile.basename === parent.name || aFile.path === DEFAULT_SETTINGS.additionalSortspecFile) {
if (aFile.name === SORTSPEC_FILE_NAME || aFile.basename === parent.name || aFile.path === this.settings.additionalSortspecFile) {
const sortingSpecTxt: string = mCache.getCache(aFile.path)?.frontmatter?.[SORTINGSPEC_YAML_KEY]
if (sortingSpecTxt) {
anySortingSpecFound = true