all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Visuwesh <visuweshm@gmail.com>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: Bad interaction between org-capture entry type and file+function target?
Date: Sun, 15 Dec 2024 15:50:47 +0000	[thread overview]
Message-ID: <87ed297xns.fsf@localhost> (raw)
In-Reply-To: <875xogbtkh.fsf@gmail.com>

Visuwesh <visuweshm@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>


      reply	other threads:[~2024-12-15 15:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-21  5:46 Bad interaction between org-capture entry type and file+function target? Visuwesh
2024-11-21 13:33 ` Visuwesh
2024-12-15 15:50   ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ed297xns.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=visuweshm@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.