Visuwesh <visuwe...@gmail.com> writes: > I just thought of a situation where this behaviour would be desired: a > template could use FUNCTION-FINDING-LOCATION to ask the user to choose a > heading (from a list, using org-ql, etc.) to capture the entry to go > _under_ it. Here, the function would simply move the point to be on the > heading. > [ I am actually in the process of writing such a capture template. ] > > So perhaps an indicator to tell org-capture that I want to insert the > heading exactly _at_point_ is required instead?
That's what :insert-here is for. By default, capture location is an entry/list/table line where we want to put capture template. Usually, it means _under_ entry, at the begin/end of a list, begin/end of a table, etc. Clearly, it is not documented well enough. We should improve the docs. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>