From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id sB9sAEqIM2YSswAA62LTzQ:P1 (envelope-from ) for ; Thu, 02 May 2024 14:34:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sB9sAEqIM2YSswAA62LTzQ (envelope-from ) for ; Thu, 02 May 2024 14:34:18 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=e3DJu8kU; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714653257; 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=jDkQJbcoQOPaUtg00JQW/TCFY6AcHYdT5oUTN75xE1A=; b=biiY2vaO8MGi7h7aBjCs2yTGCkCc+6/dZjn2Gi+bSkmYyBVZBUhcOgs5XSaw7pkcWDUf8j t1szDT16UK6RnSJHM72213eF/qp2OIljvF9kEOBDoz8kp/m2ArN9WDKfpHu1G2okezlMY1 XOZg5kb5ERxb/2oxFtmIdmpSeDqByarFbFWA+ti25SDmw/IAEqT3bhoRKw6NKZLbZos0nO YSuCyR+QlirDFW+7KDSr9SIlBZ/IZfrzJAOQc5fADVxIpAPfLVGEvAJpGfxHYkD5CaahU7 X0AS0GhyGWLdmOJvM1b1GSWqvLbH0xI0I1VtJBUNnEUGnm6GM/Gei7yfRs+/tA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714653257; a=rsa-sha256; cv=none; b=N2yN+SnJBhoOg6H18V3+3gqnu2o1CcOAL/T2oPvv1S3rOj2w9Hrfcbc5aogowSdwp68XcW SqZDXCak2+f/iUOxbSZDVslOfNL9BE7ts8Ovo6Vs311IjuuSiAvW2At6DStpTW+oG9/JX8 qxItfm7TQ8tVZqABr10seRZ/U0mtEpTGfI7kHfEv1M2vs0k7aUIs9x45+Wo2fplghm4VKw HnTJuR17sh24v0sEIwNXZgvsU/wdxAPqwHhdPhFlOfPLf8rNtX/VzV4OtxdIVJYfu02azt VYhsc9J25J++FgfA0XplTEhxaEk/gSPQFJJqJQcyh1h/i1GEg7DGmrIYN4ieNg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=e3DJu8kU; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 B77B33706 for ; Thu, 02 May 2024 14:34:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2Vcz-00075f-C5; Thu, 02 May 2024 08:33:33 -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 1s2Vcv-00075I-OH for emacs-orgmode@gnu.org; Thu, 02 May 2024 08:33:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2Vct-00048q-CE for emacs-orgmode@gnu.org; Thu, 02 May 2024 08:33:29 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 08B44240101 for ; Thu, 2 May 2024 14:33:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1714653205; bh=38GE/DNYCKbp76MFdsbhihwPereeoJ3mp/hmJFjxxQU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=e3DJu8kUDHaKwl4bSxu46GwEXEPqvY0LwfRrkQE8LtEaXu8O502/T54SY0bK/MPTM 0svZTEIvsJTv2En8rJLehal21cj1kLIiiSFgsUiFzJbln4SSJfaU5igW3/u6VuaAdj 4U7Ce1TU+sWEZbAAzYzrF7lhwrUbIK8Y9+rWSWAw3CaKdnBGOTkNCSfYRIHmRjG4PW S6oemLo7OOInl8F1bFIIdHmrPCUVus9Twnc007usJORORGnHcR2wcEu6TRcpXL1dYn gibKCcTGcxCjFuPd3pEOB5jqqnGwcAXToderDfFkEjqvIzYgs78omENaaVdCpwrfAZ Br2H4TUllCA/w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VVYJ41X1vz6tlh; Thu, 2 May 2024 14:33:24 +0200 (CEST) From: Ihor Radchenko To: Nafiz Islam Cc: emacs-orgmode@gnu.org Subject: Re: [FR] Support headline as a function for file+headline target for org-capture-templates In-Reply-To: References: <87mspb6nf2.fsf@localhost> <87r0eleqi2.fsf@localhost> <87jzkdsksv.fsf@localhost> Date: Thu, 02 May 2024 12:34:35 +0000 Message-ID: <87wmoc9yuc.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.60 X-Spam-Score: -6.60 X-Migadu-Queue-Id: B77B33706 X-Migadu-Scanner: mx11.migadu.com X-TUID: RmoEnRRe1Uf2 Nafiz Islam writes: >> 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. Sounds reasonable. Such a feature would require a new function similar to `org-capture-expand-file', but for outlines. Would you be interested to submit a patch? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at