docs: capture TASK-019 — open directly in preview/reading mode (-p), glow replacement
537bd9b9dee1390f4cf336534003fc56550c40b7
humdrum <me@humdrum.me> · 2026-06-29 09:56
parent 6c3baead
1 files changed
- → Open-directly-in-preview-reading-mode-p-preview.md +26 −0
@@ -0,0 +1,26 @@
+---
+id: TASK-019
+title: 'Open directly in preview / reading mode (-p, --preview)'
+status: "\U0001F7E6 Backlog"
+assignee: []
+created_date: '2026-06-29 16:56'
+labels:
+ - feature
+ - release-1
+dependencies: []
+priority: medium
+ordinal: 19000
+---
+
+## Description
+
+<!-- SECTION:DESCRIPTION:BEGIN -->
+Open a document straight into the Glamour read view, skipping the editor — turns glint into a glow-style markdown reader. Flag forms (matching the command convention): -p / --p / -preview / --preview, optionally with a file: 'glint -p notes.md' opens notes.md in preview; 'glint -p' could preview the picker selection or the current dir's pick. Implementation: main parses the preview flag and the app starts in ModePreview with the file loaded + rendered (a.Start variant that loads then togglePreview). Ctrl+P still toggles back to the editor; Esc/Ctrl+Q behave normally. Consider other reading-mode entry points later: a key in the picker to preview-without-editing, and a 'glint -p' over a directory/vault. Positioning: this lets glint replace glow as the terminal markdown reader.
+<!-- SECTION:DESCRIPTION:END -->
+
+## Acceptance Criteria
+<!-- AC:BEGIN -->
+- [ ] #1 glint -p [file] (and --preview / -preview / --p) opens the file directly in the read preview
+- [ ] #2 Ctrl+P toggles back to the editor; quit/esc behave normally
+- [ ] #3 Works as a glow-style reader (themed preview, no dark panels)
+<!-- AC:END -->