aboutsummaryrefslogtreecommitdiff
path: root/tests/test-org-capture-config--find-or-create-top-heading.el
Commit message (Collapse)AuthorAgeFilesLines
* refactor(org-capture): extract the find-or-create-top-heading blockCraig Jennings2026-06-201-0/+45
cj/org-capture--goto-file-headline, cj/--org-capture-goto-open-work, and cj/--org-capture-goto-exact-headline each repeated the same positioning block: search from point-min, jump to the heading on a match, else append it at end of buffer and back up. Extract cj/--org-find-or-create-top-heading taking the search regexp and the heading line; the three sites delegate. Behavior unchanged; adds direct coverage of the helper with a plain regexp.