makemd icon indicating copy to clipboard operation
makemd copied to clipboard

[FR] Hide files by extension. from Navigator

Open anime-haram opened this issue 8 months ago • 8 comments

Your plugin is great, but it can't hide files by file extension alone.

Many plugins don't have the ability to hide files. "Reveal all file extensions" is enabled in Obsidian's core settings.

An example plugin is "obsidian-edit-history." We could integrate something like this to hide files from the explorer, using CSS:

tree-item.nav-file:has(div[data-path$=edtz]) {
display: none;
}

anime-haram avatar Apr 27 '25 11:04 anime-haram

You can hide by extension under the manage hidden folders menu in the main menu


From: AntiOtaku7 @.> Sent: Sunday, April 27, 2025 7:35:35 AM To: Make-md/makemd @.> Cc: Subscribed @.***> Subject: [Make-md/makemd] [FR] Hide files by extension. from Navigator (Issue #471)

[https://avatars.githubusercontent.com/u/203574908?s=20&v=4]AntiOtaku7 created an issue (Make-md/makemd#471)https://github.com/Make-md/makemd/issues/471

Your plugin is great, but it can't hide files by file extension alone.

Many plugins don't have the ability to hide files. "Reveal all file extensions" is enabled in Obsidian's core settings.

An example plugin is "obsidian-edit-history." We could integrate something like this to hide files from the explorer, using CSS:

tree-item.nav-file:has(div[data-path$=edtz]) { display: none; }

— Reply to this email directly, view it on GitHubhttps://github.com/Make-md/makemd/issues/471, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFHKNVOZ757QHCX5A3IYGL23S6IPAVCNFSM6AAAAAB36QGBBWVHI2DSMVQWIX3LMV43ASLTON2WKOZTGAZDGMBSGQYTOMA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

jp-cen avatar Apr 27 '25 11:04 jp-cen

When "Detect all file extensions" is disabled, .rar, .zip and other types are hidden. We need to see all types except exceptions. Is this possible?

anime-haram avatar Apr 27 '25 13:04 anime-haram

The make.md navigator does not use the settings from the Obsidian files view so you can configure them separately.


From: AntiOtaku7 @.> Sent: Sunday, April 27, 2025 9:50:31 AM To: Make-md/makemd @.> Cc: JPC @.>; Comment @.> Subject: Re: [Make-md/makemd] [FR] Hide files by extension. from Navigator (Issue #471)

[https://avatars.githubusercontent.com/u/203574908?s=20&v=4]AntiOtaku7 left a comment (Make-md/makemd#471)https://github.com/Make-md/makemd/issues/471#issuecomment-2833469542

When "Detect all file extensions" is disabled, .rar, .zip and other types are hidden. We need to see all types except exceptions. Is this possible?

— Reply to this email directly, view it on GitHubhttps://github.com/Make-md/makemd/issues/471#issuecomment-2833469542, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFHKNRQLJHFFU6DBDU2D3L23TOCPAVCNFSM6AAAAAB36QGBBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMZTGQ3DSNJUGI. You are receiving this because you commented.Message ID: @.***>

jp-cen avatar Apr 27 '25 18:04 jp-cen

I used a basic file explorer and an extension called "File Tree Alternative" that hides .edtz files, thanks to these snippes: An example plugin is "obsidian-edit-history." We could integrate something like this to hide files from the explorer, using CSS:

tree-item.nav-file:has(div[data-path$=edtz]) {
display: none;
}

The only strange thing is that your plugin doesn't hide .edtz files Extension. Could you please provide a solution? Thank you.

anime-haram avatar Apr 27 '25 18:04 anime-haram

The Navigator view has been properly hiding .edtz files for months. Today it suddenly started showing them again in my laptop. On my phone, I'm running the same version of Obsidian and make.md and Navigator view on my phone still hides them.

I'm not using any of the CSS snippets or file exclusion settings in Core Obsidian. I have Detect all file extensions disabled on both laptop and phone and that normally takes care of it.

I'm not sure what changed with make.md. Maybe nothing changed and it's my laptop that's going crazy.

Is there a setting in make.md that can be used to hide certain file extensions? I don't think the Navigator view honors the CSS snippets. I'm certain it didn't the last time I tried, but that was months ago.

I've seen both

.tree-item.nav-file:has(div[data-path$=edtz]) {
  display: none;
}

and

.tree-item.nav-file > div[data-path$=edtz] {
  display: none;
}

wordeater avatar Oct 26 '25 04:10 wordeater

Thanks for reporting this, there were some changes to hiding files that made them more consistent but there may be an issue with hiding extensions. Inside your “Manage Hidden Files” either through running the command or in the settings, does it show the extension? If this is indeed an issue that has been introduced after I run some tests, this will be fixed in the next update.

On Oct 26, 2025, at 12:24 AM, Word Eater @.***> wrote:

wordeater left a comment (Make-md/makemd#471) https://github.com/Make-md/makemd/issues/471#issuecomment-3448002559 The Navigator view has been properly hiding .edtz files for months. Today it suddenly started showing them again in my laptop. On my phone, I'm running the same version of Obsidian and make.md and Navigator view on my phone still hides them.

I'm not using any of the CSS snippets or file exclusion settings in Core Obsidian. I have Detect all file extensions disabled on both laptop and phone and that normally takes care of it.

I'm not sure what changed with make.md. Maybe nothing changed and it's my laptop that's going crazy.

Is there a setting in make.md that can be used to hide certain file extensions? I don't think the Navigator view honors the CSS snippets. I'm certain it didn't the last time I tried, but that was months ago.

I've seen both

.tree-item.nav-file:has(div[data-path$=edtz]) { display: none; } and

.tree-item.nav-file > div[data-path$=edtz] { display: none; } — Reply to this email directly, view it on GitHub https://github.com/Make-md/makemd/issues/471#issuecomment-3448002559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHKNXR3OZG2XWM565U66T3ZREG3AVCNFSM6AAAAAB36QGBBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINBYGAYDENJVHE. You are receiving this because you commented.

jp-cen avatar Oct 26 '25 15:10 jp-cen

After testing, the hiding by extension is working as expected, can you let me know if your “Manage Hidden Files” has the rule .edtz in the hidden extensions?

On Oct 26, 2025, at 12:24 AM, Word Eater @.***> wrote:

wordeater left a comment (Make-md/makemd#471) https://github.com/Make-md/makemd/issues/471#issuecomment-3448002559 The Navigator view has been properly hiding .edtz files for months. Today it suddenly started showing them again in my laptop. On my phone, I'm running the same version of Obsidian and make.md and Navigator view on my phone still hides them.

I'm not using any of the CSS snippets or file exclusion settings in Core Obsidian. I have Detect all file extensions disabled on both laptop and phone and that normally takes care of it.

I'm not sure what changed with make.md. Maybe nothing changed and it's my laptop that's going crazy.

Is there a setting in make.md that can be used to hide certain file extensions? I don't think the Navigator view honors the CSS snippets. I'm certain it didn't the last time I tried, but that was months ago.

I've seen both

.tree-item.nav-file:has(div[data-path$=edtz]) { display: none; } and

.tree-item.nav-file > div[data-path$=edtz] { display: none; } — Reply to this email directly, view it on GitHub https://github.com/Make-md/makemd/issues/471#issuecomment-3448002559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHKNXR3OZG2XWM565U66T3ZREG3AVCNFSM6AAAAAB36QGBBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINBYGAYDENJVHE. You are receiving this because you commented.

jp-cen avatar Oct 26 '25 15:10 jp-cen

.edtz was not in the list. I added it and that resolved the problem.

wordeater avatar Oct 26 '25 22:10 wordeater