From fb7d14c74f47d1b4cf77681f14daf3db4c789b9a Mon Sep 17 00:00:00 2001 From: Kacper Kula Date: Sun, 19 May 2024 12:35:40 +0100 Subject: [PATCH] removing console.logs --- src/command.ts | 13 ------------- src/modal.ts | 1 - 2 files changed, 14 deletions(-) diff --git a/src/command.ts b/src/command.ts index 5f273f2..ba14544 100644 --- a/src/command.ts +++ b/src/command.ts @@ -5,32 +5,26 @@ import { OrganiseCancelError } from "./errors"; export class OrganiseCommand { async processInboxFiles() { - console.log('Processing inbox files') const inboxFolder = this.app.vault.getAbstractFileByPath(this.settings.inboxFolder); - console.log('Inbox Folder', inboxFolder); if (!inboxFolder || !inboxFolder.children || inboxFolder.children.length === 0) { new Notice("Nothing to Organise",1500) return; } - console.log(inboxFolder) const files = inboxFolder.children.filter((file: TAbstractFile) => file instanceof TAbstractFile); for (const file of files) { try { - console.log(file.path) await this.app.workspace.openLinkText(file.path, file.path); // await sleep(1000) const destination = await this.askForDestinationCustom(file); - console.log('got destination???', destination) if (destination) { await this.moveFile(file, destination.path); } } catch (e) { if (e instanceof OrganiseCancelError) { - console.log('Cancelled') break; } } @@ -38,13 +32,6 @@ export class OrganiseCommand { } async askForDestinationCustom(file: TAbstractFile) { - // console.log('LINKZ', this.app.metadataCache.getFileCache(file).links) - // const links = this.app.metadataCache.getFileCache(file).links ?? []; - // const resolvedLinks = links.map((link) => { - // const resolvedPath = this.app.metadataCache.getFirstLinkpathDest(link.link, file.path); - // return resolvedPath - // }); - // console.log('RESOLVED LINKS', resolvedLinks) return new SelectFileModal(this.app, `Organising: ${file.name}`).open(); } diff --git a/src/modal.ts b/src/modal.ts index b93f66c..4eac0b9 100644 --- a/src/modal.ts +++ b/src/modal.ts @@ -86,7 +86,6 @@ export class SelectFileModal extends SuggestModal { // Perform action on the selected suggestion. onChooseSuggestion(folder: Folder, evt: MouseEvent | KeyboardEvent) { - console.log('ON CHOOSE SUGGESTION') new Notice(`Selected ${folder.title}`); this.isResolved = true; this.resolve(folder);