From 32ce9f55ed080af0245e3a6edf58a64d6a3b7879 Mon Sep 17 00:00:00 2001 From: Paul <70213368+LostPaul@users.noreply.github.com> Date: Mon, 1 Jun 2026 18:33:44 +0200 Subject: [PATCH] Fix reveal folder function --- src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 3deec58..fcb94a3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -255,7 +255,8 @@ export default class FolderNotesPlugin extends Plugin { if (fileExplorerPlugin) { const fileExplorer = fileExplorerPlugin as unknown as FileExplorerPluginLike; const originalRevealInFolder = - fileExplorer.revealInFolder as unknown as FileExplorerPluginLike['revealInFolder']; + (fileExplorer.revealInFolder as unknown as FileExplorerPluginLike['revealInFolder']) + .bind(fileExplorer); fileExplorer.revealInFolder = (file: TAbstractFile): void => { if (file instanceof TFile) { const folder = getFolder(this, file);