Repository navigation
Open
Labels
enhancementNew feature or request
Description
User need
Long Markdown documents are difficult to review when every section remains expanded and clicks can accidentally edit content. Writers need to hide sections temporarily, navigate the document, and read or present it in a full-width read-only view.
Current behavior
In 0.5.2, the Outline and Document rail navigate headings. Split view provides an editable source pane beside a read-only preview. There is no dedicated full-width reading mode or heading-based section folding. Existing code-block expansion is separate from folding document sections.
Proposed scope
- Fold and unfold a heading's content through the next heading of equal or higher level, with predictable behavior for nested sections.
- Offer keyboard-accessible section controls and Fold All / Unfold All actions through the existing command interfaces.
- Provide a dedicated reading mode that hides editing controls and prevents text, table, checklist, equation, and front-matter edits while retaining selection, copying, links, search, and outline navigation.
- Preserve the reading position and restore the editing selection when returning to editing. Navigating to content inside a folded section should reveal it predictably.
- Keep fold state and reading mode as presentation state; neither should change Markdown, dirty the document, add content undo entries, or omit content from exports.
Acceptance criteria
- Nested headings, skipped heading levels, and empty sections fold over the correct boundaries.
- Keyboard users can discover and operate folding and reading-mode controls; expanded/collapsed state is announced to assistive technology.
- Switching modes or folding sections does not change document bytes, saved content, or content undo history.
- Reading mode permits text/code copying and link navigation while blocking all document-editing paths, including paste, drop, shortcuts, and interactive checkboxes.
- Outline and search navigation can reach hidden content without leaving the user at an unrelated location.
- Exports include the complete document regardless of folded sections or reading mode.
- View switching, external file updates, and returning to editing preserve a valid reading position and selection; persistence behavior is documented.
- Controls remain usable in narrow panes and with screen readers, and the editor guide explains the workflow.
Priority: high for reviewing and presenting long documents. This request does not include slide generation or set a release target.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity