aboutsummaryrefslogtreecommitdiff
path: root/tests/test-org-contacts-config-find.el
Commit message (Collapse)AuthorAgeFilesLines
* fix(org-contacts-config): jump to contact heading, not a body matchCraig Jennings6 days1-0/+72
cj/org-contacts-find visited the contacts file before prompting, so a C-g at the prompt stranded point at the top of it. It then jumped with search-forward, which could land inside another entry's body that mentioned the name. I collect the headings with find-file-noselect first (extracted as cj/--org-contacts-collect), prompt, then jump to the selected heading's stored position. The prompt now requires a match, since a typed non-match has no position to jump to.