From 6ef196e306320804b80a502dab29dbafd12285bc Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 3 Jun 2026 07:07:52 -0500 Subject: feat(render): open a fetched view folded to the issue headings The header set #+STARTUP: show3levels, which opened a fresh view with each issue's Comments heading already unfolded. That's a level of detail past what you want when scanning a list. Drop to show2levels so a view opens at the parent plus the issue headings, with comments and bodies folded under each issue. pearl--restore-page-visibility re-reads #+STARTUP from the buffer after a repopulation, so the in-place rebuild path follows the new depth without any other change. --- pearl.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pearl.el') diff --git a/pearl.el b/pearl.el index ca9d0b1..a5fa205 100644 --- a/pearl.el +++ b/pearl.el @@ -3815,7 +3815,7 @@ no side effects." ;; The view name renders verbatim, matching Linear's own capitalization; ;; `pearl-title-case-headings' governs issue headings only. (insert (format "#+title: Linear — %s\n" name)) - (insert "#+STARTUP: show3levels\n") + (insert "#+STARTUP: show2levels\n") (insert (format "#+TODO: %s\n" (pearl--derive-todo-line states))) ;; Source-tracking metadata: the serialized source drives refresh; the ;; rest is human-readable provenance. @@ -3835,7 +3835,7 @@ no side effects." ;; Single top-level parent so the issues are sortable as a group ;; (org-sort on this heading) instead of orphan headings, and so a - ;; show3levels fold has a level-1 root. Named after the view. + ;; show2levels fold has a level-1 root. Named after the view. (insert (format "* %s\n" name)) (dolist (issue issues) -- cgit v1.2.3