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