mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Fix reveal folder function
This commit is contained in:
parent
b41cc7641d
commit
32ce9f55ed
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue