diff --git a/src/functions/utils.ts b/src/functions/utils.ts index ec9f2ff..cca1363 100644 --- a/src/functions/utils.ts +++ b/src/functions/utils.ts @@ -44,7 +44,17 @@ export function getFileExplorer( plugin: FolderNotesPlugin | FolderOverviewPlugin, ): FileExplorerWorkspaceLeaf { // eslint-disable-next-line max-len - const leaf = plugin.app.workspace.getLeavesOfType('file-explorer')[0] as unknown as FileExplorerWorkspaceLeaf; + let leaf = plugin.app.workspace.getLeavesOfType('file-explorer')[0] as unknown as FileExplorerWorkspaceLeaf; + + /* make.md plugin integration */ + if (leaf.containerEl.lastChild.dataset.type == 'mk-path-view') { + plugin.app.workspace.iterateAllLeaves((x) => { + if (x.tabHeaderEl.dataset.type == 'file-explorer') { + leaf = x; + } + }); + } + return leaf; } diff --git a/styles.css b/styles.css index 84eb68f..a8a114b 100644 --- a/styles.css +++ b/styles.css @@ -8,6 +8,12 @@ display: none; } +/* make.md plugin integration */ +.hide-folder-note .mk-tree-node > .mk-tree-wrapper > .dropzone > .mk-tree-item.is-folder-note { + opacity: 40%; + display: flex; +} + .pointer-cursor, .has-folder-note .nav-folder-title-content:hover, .has-folder-note.view-header-breadcrumb:hover, @@ -337,4 +343,4 @@ body.fn-hide-collapse-icon.only-has-folder-note:not(.is-collapsed):not(.show-fol .is-phone .fn-overview-folder-path .setting-item-control { display: block; } -} \ No newline at end of file +}