From 0683e6aeb0d4a3855dd841611ccfbb6221cfb506 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 24 May 2026 17:34:58 -0500 Subject: feat: title-case the view name in the file title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The #+title line now renders the source name in title case, gated on pearl-title-case-headings like the issue headings, so "my open bugs" shows as "Linear — My Open Bugs". pearl--source-name itself stays raw since it also feeds the echo-area refresh messages. --- pearl.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pearl.el') diff --git a/pearl.el b/pearl.el index 3f65617..4b31b2f 100644 --- a/pearl.el +++ b/pearl.el @@ -2897,7 +2897,8 @@ page cap was hit. Pure function, no side effects." (name (pearl--source-name src)) (filter (plist-get src :filter))) (with-temp-buffer - (insert (format "#+title: Linear — %s\n" name)) + (insert (format "#+title: Linear — %s\n" + (if pearl-title-case-headings (pearl--title-case name) name))) (insert "#+STARTUP: show3levels\n") (insert (format "#+TODO: %s\n" (if (bound-and-true-p org-todo-keywords) -- cgit v1.2.3