From 9f4008c2a2b50dfcf8b189e16e7df14a70d1ed78 Mon Sep 17 00:00:00 2001 From: SebastianMC <23032356+SebastianMC@users.noreply.github.com> Date: Fri, 9 Feb 2024 14:03:48 +0100 Subject: [PATCH] Revert "Bugfix for #131" This reverts commit 238c027903e2d7f26e4ba09420febe0390754a09. --- src/custom-sort/custom-sort.ts | 4 ++-- src/main.ts | 2 +- src/types/types.d.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/custom-sort/custom-sort.ts b/src/custom-sort/custom-sort.ts index abae5c4..d088bde 100644 --- a/src/custom-sort/custom-sort.ts +++ b/src/custom-sort/custom-sort.ts @@ -1,5 +1,4 @@ import { - FileExplorerView, FrontMatterCache, MetadataCache, Plugin, @@ -685,7 +684,8 @@ export const determineBookmarksOrderIfNeeded = (folderItems: Array Object.assign({} as CustomSortGroup, group)) diff --git a/src/main.ts b/src/main.ts index 53b07d0..fcdbd88 100644 --- a/src/main.ts +++ b/src/main.ts @@ -622,7 +622,7 @@ export default class CustomSortPlugin extends Plugin { } if (sortSpec) { - return folderSort.call(this, sortSpec, plugin.createProcessingContextForSorting(has), patchableFileExplorer); + return folderSort.call(this, sortSpec, plugin.createProcessingContextForSorting(has)); } else { return old.call(this, ...args); } diff --git a/src/types/types.d.ts b/src/types/types.d.ts index 4a0b01c..1e96a5c 100644 --- a/src/types/types.d.ts +++ b/src/types/types.d.ts @@ -51,7 +51,7 @@ declare module 'obsidian' { export interface FileExplorerView extends View { createFolderDom(folder: TFolder): FileExplorerFolder; - fileItems: any; + requestSort(): void; sortOrder: string