From 7cf0cd0c1af6b5fbadea1c7abf1ab766dea851a6 Mon Sep 17 00:00:00 2001 From: Aaron Meyers <13340718+aaron-meyers@users.noreply.github.com> Date: Sun, 7 Jun 2026 15:18:11 -0700 Subject: [PATCH 1/2] Remove 'Show all file types' startup banner The notice fired on every app start when showUnsupportedFiles was off, but .html files appear in the file explorer regardless. Remove it (and the now-unused Notice import) per issue #14. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- main.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/main.ts b/main.ts index 6784e9c..d80099f 100644 --- a/main.ts +++ b/main.ts @@ -2,7 +2,6 @@ import { Component, FileView, getLinkpath, - Notice, type OpenViewState, type PaneType, Plugin, @@ -272,18 +271,6 @@ export default class HtmlDocsPlugin extends Plugin { embedRegistry.unregisterExtension("html"); embedRegistry.unregisterExtension("htm"); }); - - // Obsidian hides files with unrecognized extensions in the file - // explorer unless "Show all file types" is on; registering the - // extension only routes the view, it doesn't add to that filter. - const vault = this.app.vault as { getConfig?: (key: string) => unknown }; - const showUnsupported = vault.getConfig?.("showUnsupportedFiles"); - if (showUnsupported === false) { - new Notice( - "To see .html files in your file explorer, please enable 'Show all file types' in Settings → Files & Links.", - 10000, - ); - } } trackHtmlEmbed(embed: HtmlEmbed): void { From 26a6f1cf7f821637b0d6f9ebe03f2d9d882db004 Mon Sep 17 00:00:00 2001 From: Sam Collins <81678+smcllns@users.noreply.github.com> Date: Wed, 17 Jun 2026 11:06:42 -0700 Subject: [PATCH 2/2] docs: Drop 'Show all file types' guidance now that .html shows by default --- README.md | 2 -- docs/ISSUE-source-mode.md | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index b263ea1..5c56039 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,6 @@ See `test/fixture.html` for the full list of features exercised — and the inli After installing the plugin, you can open `.html` files in Obsidian tabs (like a doc), embedded files, and canvas cards. -Obsidian shows `.md` files in the file explorer by default. To see `.html` files too, enable **Settings → Files & links → Show all file types**. - Link to HTML docs with the explicit `.html` extension: ```markdown diff --git a/docs/ISSUE-source-mode.md b/docs/ISSUE-source-mode.md index e720b78..da6d72a 100644 --- a/docs/ISSUE-source-mode.md +++ b/docs/ISSUE-source-mode.md @@ -27,7 +27,7 @@ This is a **surgical addition**, not a redesign. - [ ] Theme refresh (dark/light toggle, `css-change`) does not clobber the source editor. Simplest acceptable implementation: skip the preview re-render while source mode is active. - [ ] Existing iframe sandbox model is unchanged: Blob URL, `sandbox="allow-scripts allow-popups allow-forms"`, no `allow-same-origin`, sandbox attribute set before `src`. See `main.ts:142-154` and the explanatory comment. - [ ] `HtmlEmbed` (HTML embeds in markdown/canvas) stays read-only — no toggle, no editor. -- [ ] All existing behavior preserved: cross-file link navigation, doctype preservation, theme variable injection, "Show all file types" notice. +- [ ] All existing behavior preserved: cross-file link navigation, doctype preservation, theme variable injection. ## Approach