Skip to content

Show .html and .htm files in default file tree#76

Merged
jsgrrchg merged 2 commits into
jsgrrchg:mainfrom
spamsch:feat/file-tree-show-html-files
May 11, 2026
Merged

Show .html and .htm files in default file tree#76
jsgrrchg merged 2 commits into
jsgrrchg:mainfrom
spamsch:feat/file-tree-show-html-files

Conversation

@spamsch
Copy link
Copy Markdown
Contributor

@spamsch spamsch commented May 11, 2026

Summary

In the default notes_only mode the sidebar surfaced only .md notes and .pdf files. .html and .htm files come back from the vault classifier as text-like, openable entries (kind "file", mime text/html), but they were filtered out unless the user enabled the global "all files" toggle in settings.

The patch extends the default filter to also surface .html/.htm by extension. The "all_files" toggle is unchanged.

The matching is on entry.extension, which the Rust side at crates/vault/src/vault.rs:744 already lowercases, so casing is handled.

Click-through works without further wiring: the vault classifier maps html/htm to text/html, which is_text_like_mime_type accepts, so the entry already comes back with open_in_app: true and the existing text/code viewer renders the source.

Test plan

  • Default sidebar mode shows .html and .htm files alongside notes and PDFs
  • "All files" toggle still surfaces every other file kind as before
  • apps/desktop vitest run src/features/vault/FileTree.test.tsx (47 tests) passes

Simon Pamies and others added 2 commits May 11, 2026 12:18
In notes_only mode the sidebar previously surfaced only .md notes and
.pdf files. HTML files come back from the vault classifier as
text-like, open-in-app entries, but were filtered out unless the user
enabled the global "all files" toggle.
@jsgrrchg jsgrrchg merged commit a0bf71e into jsgrrchg:main May 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants