diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-03 07:07:52 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-03 07:07:52 -0500 |
| commit | 6ef196e306320804b80a502dab29dbafd12285bc (patch) | |
| tree | bcd067d1b7bc629ca049ba6c7a42cc87b57e8e0b /pearl.el | |
| parent | f4cf700efd8bb44ca50f555e2ee04596fc690b91 (diff) | |
| download | pearl-6ef196e306320804b80a502dab29dbafd12285bc.tar.gz pearl-6ef196e306320804b80a502dab29dbafd12285bc.zip | |
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.
Diffstat (limited to 'pearl.el')
| -rw-r--r-- | pearl.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
