From 0003bd2220b60f3a8dcdd9ffb995d63f5d564772 Mon Sep 17 00:00:00 2001 From: Lost Paul <70213368+LostPaul@users.noreply.github.com> Date: Sun, 19 Mar 2023 22:35:28 +0100 Subject: [PATCH] Removed console.logs --- src/main.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 57cf304..759cac0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -40,7 +40,6 @@ export default class FolderNotesPlugin extends Plugin { })); this.registerEvent(this.app.vault.on('rename', (file: TAbstractFile, oldPath: string) => { - console.log('rename') if (!this.settings.syncFolderName) return; if (file instanceof TFolder) { const folder = this.app.vault.getAbstractFileByPath(file?.path); @@ -61,7 +60,6 @@ export default class FolderNotesPlugin extends Plugin { } const oldName = oldPath.substring(oldPath.lastIndexOf('/' || '\\')); - console.log(oldName.replace('/', '')) folders[folders.indexOf(oldName.replace('/', ''))] = folder.name; excludedFolder.path = folders.join('/'); }); @@ -87,7 +85,7 @@ export default class FolderNotesPlugin extends Plugin { (excludedFolder.path === folder.path?.slice(0, folder?.path.lastIndexOf("/") >= 0 ? folder.path?.lastIndexOf("/") : folder.path.length) && excludedFolder.subFolders)); if (excludedFolder?.disableSync) return; - if (oldFileName !== folder?.name + '.md') return console.log('not a folder note'); + if (oldFileName !== folder?.name + '.md') return; let newFolderPath = file.path.slice(0, file.path.lastIndexOf('/')) if (newFolderPath.lastIndexOf('/') > 0) { newFolderPath = newFolderPath.slice(0, newFolderPath.lastIndexOf('/')) + '/'