all things

This commit is contained in:
caffae 2024-03-23 13:49:54 +08:00
parent 77b086e8f4
commit 66e8e00fcd
2 changed files with 1 additions and 24 deletions

View file

@ -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",

23
main.ts
View file

@ -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');
// }
}));