feat(desktop): default markdown files to preview view

Merged
KI
6mo ago
+1-1

Summary

  • Bump markdownPreviewView priority from option to default so markdown files open in the rendered preview by default instead of raw source.
  • Per-pane viewId is already persisted, so anyone who toggles to raw stays on raw for that pane; only fresh pane opens are affected.

Test plan

  • Open a .md file from the v2 file tree → renders in preview by default
  • Toggle to raw view → stays on raw across re-focus and tab switching for that pane
  • Open a different .md file → also defaults to preview
  • Non-markdown text files still open in CodeView

Summary by cubic

Markdown files now open in the rendered Preview by default. We set the markdownPreviewView priority to default; per-pane view choice persists, so switching to Raw keeps Raw for that pane while new panes still default to Preview.

Summary by CodeRabbit

  • Improvements
    • Markdown preview is now the default view when opening markdown files, streamlining file viewing workflow.