Skip to content

feat: default to formatted view for direct file opens#32

Merged
jamietre merged 4 commits into
mainfrom
feat/formatted-view-default
Apr 27, 2026
Merged

feat: default to formatted view for direct file opens#32
jamietre merged 4 commits into
mainfrom
feat/formatted-view-default

Conversation

@jamietre

Copy link
Copy Markdown
Collaborator

Summary

  • Markdown, RTF, and HTML files now open in rendered/formatted view by default when navigated to directly (tree, command palette, or direct link with no line selection)
  • Consolidates three separate profile flags (markdownFormat, rtfFormat, htmlFormat) into a single showFormatted flag — consistent with how PDFs already used preferOriginal for this purpose
  • The user's explicit toggle choice is still persisted as before

Test plan

  • Open a .md file from the tree — should render formatted by default
  • Open a .html file from the tree — should show the rendered iframe by default
  • Open a .rtf file from the tree — should show rendered RTF by default
  • Open a .md file from a search result with a line selection — should show plain text
  • Toggle "Plain" / "Formatted" — preference persists across files
  • Confirm no type-check errors (pnpm run check in web/)

🤖 Generated with Claude Code

jamietre and others added 4 commits April 24, 2026 10:10
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tion

Consolidates markdownFormat/rtfFormat/htmlFormat profile flags into a
single showFormatted flag. When a file is opened without a line selection
(tree, command palette, direct link), showFormatted defaults to true so
markdown, RTF, and HTML files open rendered rather than as plain text —
consistent with how PDFs already behaved via preferOriginal.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jamietre jamietre merged commit 6315d49 into main Apr 27, 2026
8 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.

1 participant