Thanks for the bump. Life stuff popped up and I got distracted by other hacking too.
On Thu, Jun 19 2025, Ihor Radchenko wrote: > Ihor Radchenko <yanta...@posteo.net> writes: > >>> Thank you for the clarification. WDYT of the patches attached? >> >> See my comments below. >> ... > > It has been a month. > Kristoffer, did you have a chance to look into my comments? I did, yes. I want to confirm because I wasn't quite sure which direction you were trying to nudge me toward: would you like me to ensure that the behavior introduced by the patch works well with :prepend? If that's the case, then is the following the expected behavior: 1. For all three target specifications, if :prepend is nil or omitted and the olp (for file+olp and file+olp+datetree) or headline (for file+headline) is nil or omitted, insert the new entry at the end of the <file-spec>. (Already done.) 2. However, if :prepend is t and the olp/headline is omitted, insert the new entry such that it is the first headline in the <file-spec>. (Or, for file+olp+datetree, insert the datetree such that it's beginning is the first headline.) (Not implemented.) 3. If the olp/headline is not omitted from the target spec, then behave like current org does for both :prepend nil and :prepend t. (Done.) If the above is accurate, I'll work on a new version of the patch. Would you recommend setting :exact-position to achieve 2, or would that get in the way of other org-capture features? -- Kind regards, Kristoffer