From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 0BIjJ6LKMmZSMQEAe85BDQ:P1 (envelope-from ) for ; Thu, 02 May 2024 01:05:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 0BIjJ6LKMmZSMQEAe85BDQ (envelope-from ) for ; Thu, 02 May 2024 01:05:06 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="U/R/Y+9H"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714604706; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aKNwG5PM8QUg8gMgSt++MdkDxSEHYrhWsXS+m19JYUY=; b=fwoZM7GlrJHS1swHEIAaLaQtuUp1TDEtczZaGfoImYCo5WXpki1LTNwQ8lfYlzTo+tWT9n 1bAcG+AO3dqEhTDjRFx1tbJrkBV/tO6lF88r1PM+0sfAdgiTJi2IdTbG4HN2jThStNE6o+ 18sHzCjD68JFS1W0W3p6/B1Mr9fQ4H5SOfL/kmGh7iL3uYPnFnCGG2I75C2ufAz+nX9f0z jOo3MT/uesCK+C9EUjg6BBsX0yzszpEbpug7aUPPnhgMFshxiasEUJ4t3H1aR/LOEVq/Bs ERf4tegqVAYcLnjHgsmCr9YI+BUQecYRTwxFNz6w2BWf0HK9p2BesgjMOWTjug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="U/R/Y+9H"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714604706; a=rsa-sha256; cv=none; b=FBNQpMG+oLFE/SIADciNeuchuzWrUbGmyiJ56u+T7XmfTvisVJ5EhkHzEyVhLV8w+s61Tr l4aphJ6mWB93wSCEielp+timrbpUr6yE5b+RBBbIkoETqxDAXStj0g8wZhJL3mQK7VDz5R Fx+4pcHHTr1zYGcx3qOVn2yrzj5IbBoa0H0goRz307PkQz59U9GMAIEL2eqznp3rPa3oHQ UH92x2pU0dKWOxo4jkQaX5iExmBTH7KjFo4OP13sYQAnYgiqd/XSBH7sRYtWGxDr++51Co NCvo+bz11K4WeLD5xa0/nbUPy31cMZZ/gUv/quIk9aRB2uF4Rr3o6uBvwXKCow== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B2DD36009C for ; Thu, 2 May 2024 01:05:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2Izk-0006Zu-6H; Wed, 01 May 2024 19:04:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2Izi-0006Zb-Lu for emacs-orgmode@gnu.org; Wed, 01 May 2024 19:04:10 -0400 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2Izg-0007IK-Rl for emacs-orgmode@gnu.org; Wed, 01 May 2024 19:04:10 -0400 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2de232989aaso87882101fa.1 for ; Wed, 01 May 2024 16:04:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714604646; x=1715209446; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=aKNwG5PM8QUg8gMgSt++MdkDxSEHYrhWsXS+m19JYUY=; b=U/R/Y+9H1xCmlRFskRUzs8yFafhonmjWO9y/7UjGFn6fpGmKPaeCdvxtvAHqWwE4wA pmdbMNDl3xpDkljzsBSxyxLd4mIXS/clJe1pgpbTtINoAi11wR4sl2k8tqfd4sv+7jfK tVEK6n7Cs8WC4be+OJ4dIwYXCYMRs65NU+N++a/dkXv5V07U9Yz1I8mFQx3W6Hr1PeqS WfNI0LeEgNkmCDXCdaacoabbR/Clc4iLNE/uou+QsPFm/PDe0uJCYF1Vt6MPrCjYcqY+ CGowQkbBec4t8vR+03oCofwZHWCtAyQwvvYCs2LjjvbuPzM1MXe591Et4PxAGSGouLuk D02g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714604646; x=1715209446; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aKNwG5PM8QUg8gMgSt++MdkDxSEHYrhWsXS+m19JYUY=; b=XsEYveJ65BzUx1CMPMMrxu/XL0mxAipwuzkLT2aXBVeFg5iN59Ba9pb6Ifzxd9CDZU V/3s8cwqgnkl1IvGorGhRL5J8z5jExbnmBl0TpdILrjvX3mTv8S8nvCfPclz38c1iJLw TiTUkKrwvtZSrB8tfoXIEPg2d9LYhsNGfMFRLQp7i47UVicUhb3kXdnuNX1wwKUBt/s6 XB0glJ9PLiCINghgDGN7hDsjlFNBB29kow9ZM7x1E0P7kJFKbTs1yjbICVpCxlX6L2de k7M45DO9GwaQkstitNestAjoH/dh1MR5hVKnvqsdRIFySlpAv+3XpqXNaLXr5Tbp586J kvPg== X-Gm-Message-State: AOJu0YwaC1+Hf7L65R4tlpNyc03lVeSfAQLG+fozQkHf4eguFSdD0Awy b6QfmImAW+Vngk+KgmHKTcmCEieD1Ykdz3PDhBpXUGQyNW+W/hhhFDf7ViIp9zo9luvj0EfodaX NW+jcO9Kw/VYKpHz/u58xKD9MeWY= X-Google-Smtp-Source: AGHT+IEUUcHQJRragDaOOx/0tbZDnMHyQZsg6u3mSQcsyLxNrSgEDEytPZ9kG6qz2PtdBS2Wv1+3T5A1qnfMF+kYkHA= X-Received: by 2002:a05:651c:2110:b0:2e1:b0e3:21f with SMTP id a16-20020a05651c211000b002e1b0e3021fmr954644ljq.40.1714604645873; Wed, 01 May 2024 16:04:05 -0700 (PDT) MIME-Version: 1.0 References: <87mspb6nf2.fsf@localhost> <87r0eleqi2.fsf@localhost> <87jzkdsksv.fsf@localhost> In-Reply-To: <87jzkdsksv.fsf@localhost> From: Nafiz Islam Date: Wed, 1 May 2024 19:03:54 -0400 Message-ID: Subject: Re: [FR] Support headline as a function for file+headline target for org-capture-templates To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000d9030d06176c809e" Received-SPF: pass client-ip=2a00:1450:4864:20::22a; envelope-from=nafiz.islam1001@gmail.com; helo=mail-lj1-x22a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.80 X-Spam-Score: -6.80 X-Migadu-Queue-Id: B2DD36009C X-Migadu-Scanner: mx13.migadu.com X-TUID: 4KZWbgI8hBFf --000000000000d9030d06176c809e Content-Type: text/plain; charset="UTF-8" > May you please describe what kind of feature you want to introduce and > explain why it is useful for other Org mode users? The feature I want to introduce is to allow the headline parameter to be a function for the `file+headline' target for the `org-capture-templates'. The function would take a list of headlines as a parameter, and the user would be able to pick a headline it wants to reuse or create a new one by returning a string. This makes it possible, for example, to pick a headline dynamically based on the current time (like in my case) to add an entry, or the user could implement a function that prompts with existing headlines to choose from. --000000000000d9030d06176c809e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> May you please d= escribe what kind of feature you want to introduce and
> expla= in why it is useful for other Org mode users?

The = feature I want to introduce is to allow the headline parameter to be a func= tion for the `file+headline' target for the `org-capture-templates'= . The function would take a list of headlines as a parameter, and the user = would be able to pick a headline it wants to reuse or create a new one by r= eturning a string. This makes it possible, for example, to pick a headline = dynamically based on the current time (like in my case) to add an entry, or= the user could implement a function that prompts with existing headlines t= o choose from.
--000000000000d9030d06176c809e--