mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Merge pull request #100 from RyotaUshio/main
This commit is contained in:
commit
dc2e53c589
1 changed files with 1 additions and 4 deletions
|
|
@ -9,12 +9,9 @@ import ExcludedFolderSettings from '../modals/ExcludeFolderSettings';
|
|||
import { updatePattern, getExcludedFolderByPattern, addExcludePatternListItem } from './patternFunctions';
|
||||
|
||||
export function getExcludedFolder(plugin: FolderNotesPlugin, path: string) {
|
||||
console.log('get excluded folder', path);
|
||||
const folderName = getFolderNameFromPathString(path);
|
||||
const matchedPattern = getExcludedFolderByPattern(plugin, folderName);
|
||||
if (matchedPattern) { return matchedPattern; }
|
||||
console.log('test 3', path);
|
||||
console.log('test 4', folderName)
|
||||
const excludedFolder = getExcludedFolderByPath(plugin, path);
|
||||
if (excludedFolder?.path === '') { return; }
|
||||
return excludedFolder;
|
||||
|
|
@ -150,4 +147,4 @@ export function addExcludeFolderListItem(settings: SettingsTab, containerEl: HTM
|
|||
setting.settingEl.remove();
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue