feat(desktop): default markdown files to preview view
Merged
KI
6mo ago+1+1+0123456789-1-1-0123456789
Summary
- Bump
markdownPreviewViewpriority fromoptiontodefaultso markdown files open in the rendered preview by default instead of raw source. - Per-pane
viewIdis already persisted, so anyone who toggles to raw stays on raw for that pane; only fresh pane opens are affected.
Test plan
- Open a
.mdfile 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
.mdfile → 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.