aboutsummaryrefslogtreecommitdiff
path: root/pearl.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-24 17:34:58 -0500
committerCraig Jennings <c@cjennings.net>2026-05-24 17:34:58 -0500
commit0683e6aeb0d4a3855dd841611ccfbb6221cfb506 (patch)
tree5023bd5b53b6ce1e35fb6c06260964bcccecf0bd /pearl.el
parentcc599d3e9d37c200d49f723ff8e8ce694acd33f8 (diff)
downloadpearl-0683e6aeb0d4a3855dd841611ccfbb6221cfb506.tar.gz
pearl-0683e6aeb0d4a3855dd841611ccfbb6221cfb506.zip
feat: title-case the view name in the file title
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.
Diffstat (limited to 'pearl.el')
-rw-r--r--pearl.el3
1 files changed, 2 insertions, 1 deletions
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)