From 66e8e00fcd4e6ebf595ee523e55778df0c0ff942 Mon Sep 17 00:00:00 2001 From: caffae Date: Sat, 23 Mar 2024 13:49:54 +0800 Subject: [PATCH] all things --- current-folder-notes/manifest.json | 2 +- main.ts | 23 ----------------------- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/current-folder-notes/manifest.json b/current-folder-notes/manifest.json index 0ea58e0..95b9787 100644 --- a/current-folder-notes/manifest.json +++ b/current-folder-notes/manifest.json @@ -1,7 +1,7 @@ { "id": "current-folder-notes-pamphlet", "name": "Current Folder Notes", - "version": "1.2.0", + "version": "1.2.1", "minAppVersion": "0.15.0", "description": "Shows a list of notes in the current folder, and allows you to filter the titles to include or exclude notes.", "author": "Pamela Wang", diff --git a/main.ts b/main.ts index 13ada2d..e795465 100644 --- a/main.ts +++ b/main.ts @@ -56,29 +56,6 @@ export default class CurrentFolderNotesDisplay extends Plugin { // let view = this.app.workspace.getActiveViewOfType(CurrentFolderNotesDisplayView); this.refreshView(); - // if (!view) { - // // If there is no active CurrentFolderNotesDisplayView, open one - // const leaf = this.app.workspace.getRightLeaf(false); - // if (leaf) { - // view = new CurrentFolderNotesDisplayView(leaf, this); - // leaf.setViewState({ - // type: VIEW_TYPE_CURRENT_FOLDER_NOTES_DISPLAY, - // active: true, - // }); - // } - // } - // if (views.length > 0) { - // // If there is an active CurrentFolderNotesDisplayView, update it - // views[0].fileChangeHandler(file); - // // Close other CurrentFolderNotesDisplayView instances - // for (let i = 1; i < views.length; i++) { - // views[i].detach(); - // } - // } - // if (view) { - // view.fileChangeHandler(file); - // // new Notice('File opened'); - // } }));