From 3c41d3b6fcfb3bfa3cff627535685b9ecfe82a00 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 27 May 2026 23:30:08 -0500 Subject: refactor(preamble): tighten buffer affordance comments to keymap form The four-line preamble enumerated `M-x pearl-save-issue` / `M-x pearl-create-comment` / etc., even though pearl-mode binds the whole verb-prefix keymap under `C-; L` and that's what users actually type after the first session. Replaced with two lines: one for inline edits + save, one for the verb-prefix groups (edit, refresh, menu, pick-source). Reads as a key reference rather than a command list. The build-org-content test now matches the affordance line on "save" instead of the literal `pearl-save-issue` so the next rephrase doesn't trip it. --- tests/test-pearl-output.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test-pearl-output.el b/tests/test-pearl-output.el index a838bfb..e3208e3 100644 --- a/tests/test-pearl-output.el +++ b/tests/test-pearl-output.el @@ -51,8 +51,9 @@ (should (string-match-p "^#\\+title: Linear — My open issues$" out)) (should (string-match-p "^#\\+LINEAR-SOURCE: " out)) (should (string-match-p "^#\\+LINEAR-COUNT: 0$" out)) - ;; affordance preamble is present as org comments, not content - (should (string-match-p "^# .*pearl-save-issue" out)))) + ;; affordance preamble is present as org comments, not content -- match + ;; the save cue loosely so a future rephrase doesn't break the test + (should (string-match-p "^# .*save" out)))) (ert-deftest test-pearl-build-org-content-source-roundtrips () "The serialized source in the header reads back to the original plist." -- cgit v1.2.3