Skip to content

Commit 9f4008c

Browse files
committed
Revert "Bugfix for #131"
This reverts commit 238c027.
1 parent e18122c commit 9f4008c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/custom-sort/custom-sort.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {
2-
FileExplorerView,
32
FrontMatterCache,
43
MetadataCache,
54
Plugin,
@@ -685,7 +684,8 @@ export const determineBookmarksOrderIfNeeded = (folderItems: Array<FolderItemFor
685684
})
686685
}
687686

688-
export const folderSort = function (sortingSpec: CustomSortSpec, ctx: ProcessingContext, fileExplorer: FileExplorerView) {
687+
export const folderSort = function (sortingSpec: CustomSortSpec, ctx: ProcessingContext) {
688+
let fileExplorer = this.fileExplorer
689689

690690
// shallow copy of groups and expand folder-specific macros on them
691691
sortingSpec.groupsShadow = sortingSpec.groups?.map((group) => Object.assign({} as CustomSortGroup, group))

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ export default class CustomSortPlugin extends Plugin {
622622
}
623623

624624
if (sortSpec) {
625-
return folderSort.call(this, sortSpec, plugin.createProcessingContextForSorting(has), patchableFileExplorer);
625+
return folderSort.call(this, sortSpec, plugin.createProcessingContextForSorting(has));
626626
} else {
627627
return old.call(this, ...args);
628628
}

src/types/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ declare module 'obsidian' {
5151

5252
export interface FileExplorerView extends View {
5353
createFolderDom(folder: TFolder): FileExplorerFolder;
54-
fileItems: any;
54+
5555
requestSort(): void;
5656

5757
sortOrder: string

0 commit comments

Comments
 (0)