aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-20 11:51:12 -0400
committerCraig Jennings <c@cjennings.net>2026-06-20 11:51:12 -0400
commitd96a162db3be25cb812d08a10c831baa2790c492 (patch)
tree6b633916138901a37321fd57a3f851624cc534f9 /scripts
parent3a0fa280183d426935956979ad713fb6e7284488 (diff)
downloaddotemacs-d96a162db3be25cb812d08a10c831baa2790c492.tar.gz
dotemacs-d96a162db3be25cb812d08a10c831baa2790c492.zip
refactor(org-capture): extract the find-or-create-top-heading block
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.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions