From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uJaRH9OeoGJ1agEAbAwnHQ (envelope-from ) for ; Wed, 08 Jun 2022 15:06:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aN6pHtOeoGIrOgEAG6o9tA (envelope-from ) for ; Wed, 08 Jun 2022 15:06:27 +0200 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 2527C3DB4F for ; Wed, 8 Jun 2022 15:06:26 +0200 (CEST) Received: from localhost ([::1]:42640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyvOD-0000nw-Iq for larch@yhetil.org; Wed, 08 Jun 2022 09:06:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyv1t-0004Bl-5C for emacs-orgmode@gnu.org; Wed, 08 Jun 2022 08:43:21 -0400 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]:56018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyv1r-0007UZ-FP for emacs-orgmode@gnu.org; Wed, 08 Jun 2022 08:43:20 -0400 Received: by mail-pj1-x1033.google.com with SMTP id e9so7948534pju.5 for ; Wed, 08 Jun 2022 05:43:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=6aHZ6cIqMA9vGb6m6b30BvqCWY3OoPiZLWn7SYzgF+Y=; b=G0k6dVm860H6I3QqzY8oQzlMsVKsU/wboY7FNhlSX6ryTgPOnmdiAoUh7cZB4ZmQPI UAklMnTYm8DooYeI/ACLgdydoz6LXTGWEsAFLFbSCR9DDGefdmDZRLaTIEq62IM2xhNL 92uwHF1p3GDIPuf2i1263OoREu8sWPF0tcgMxS8ustgmUf0NBlwk7ZKSGg857ewV+qjl WMCVIjA7whqaJoFON9dEhQwCwPO33lju8+5wC64LhJriHRlYD1vpXIqggeYpshWSHOSc FGWPU91nHB09qIE07FfIpWGGjeR6EGQG7OeztdiWmZNoUdyQNDWTIpxOwKvJzdij4CUi ws/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=6aHZ6cIqMA9vGb6m6b30BvqCWY3OoPiZLWn7SYzgF+Y=; b=xCY3K9t0UyEETG1eILT2koFvLZ7Aek8yrJleXI5BwgKezaOqUtao4bRBBRQjosAooT NVvQaVKQPNcSTJn3NZ8s4EoK2U1xTjy6oMLh1ol7lJ+Pe7XD9/zfm+1OeTrQrwPTe12E 43Trq6FY9wa39QVhKC0Ps3Em6SWItFdnbU8qDaycfUl8ivLWvYFDRy5ZBQcCy0Kw2RNQ VHTBTGVRiz29hCPF+RECKH75aKx3qufX8rAJW5mohS6HXUZ8dPXGKTqu61xpm0/WbLJ1 aGyP7GuWMwYtIyzbInCgeCQwXRNn7okjVw0S2Wm7uOeqDtaMUe3n75fPvXPihYcjADfb haMQ== X-Gm-Message-State: AOAM530MhGuZ1LdQ4g/KbRgC5HXO7VJ3F3DJvO5TNKTqfxY3mlXd7ENZ rbDTyA5VKQHfW0twbz7l/2A= X-Google-Smtp-Source: ABdhPJwlVHx/m3CSFTJq//oj31kEUuGUhXpX+ZPUY7oPg81kpdtnr+6WYKO6U7NhINdL7SsTJBhq5A== X-Received: by 2002:a17:90b:20d4:b0:1e2:fadf:3f09 with SMTP id ju20-20020a17090b20d400b001e2fadf3f09mr37667438pjb.236.1654692197692; Wed, 08 Jun 2022 05:43:17 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id s17-20020a170902c65100b0015ee60ef65bsm14403779pls.260.2022.06.08.05.43.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 05:43:16 -0700 (PDT) From: Ihor Radchenko To: Tim Cross Cc: emacs-orgmode@gnu.org Subject: Re: Proposal: 'executable' org-capture-templaes In-Reply-To: <87sfoi1xde.fsf@gmail.com> References: <87mtf3tui1.fsf@localhost> <87pmjyco0x.fsf@localhost> <87fskrobiw.fsf@localhost> <87a6ay1enh.fsf@localhost> <87zgisvuu5.fsf@localhost> <87sfoi1xde.fsf@gmail.com> Date: Wed, 08 Jun 2022 20:43:55 +0800 Message-ID: <87ilpbs4tw.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1033.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654693587; 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=6aHZ6cIqMA9vGb6m6b30BvqCWY3OoPiZLWn7SYzgF+Y=; b=KK/NZJ5X13Ub6PXlDKlwMqxUh6neL3xtrBK9tq5xYId2CZO6+hs+2cuMvwIivEr7enZF1u Ie5laYncLRs6HebvFXZIQIY9A8amha6I1i+LKM0H1o1ngEf9b/s5c5TAdoITezxXp0CV2n 0pIvemnxKNljHhY3hMgS/Kdu2E/xkSdfWPurA8TF670JzuYR6mzZEauSkyZVmdYLKa8CpM XEbFedwU4jVgFDp0SH9sTUv7UjlycGOU16wm8CgfKXwk/7XPPDQtBsRggfI0IHrP/igN6e p7Z1f/u41sHyDPclzmIoKfyjYnKuZeSFuqgdr4cJjteyeKhrW5ZEFG2ajy41Zw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654693587; a=rsa-sha256; cv=none; b=oOM3P9X+bfdAI6rTxHthM7VlsmLwRhdOKRbPHytENLMzuefjNoY5C0+It4ikdYF64QUZc7 2CcD1xDSMhZ89dmZ1ObwpdM7/PLzuCZUAVaaLzWmgCIoS8PJIodBSvZQV6sj7TrDzoyRcn oVREmxrPpoAElg4q9uUoYTQeruzxYLaZwUnaGG7z5eN+Z55yMWLwIxpVjcgUNdy3w/br5Y C77KDTJ5xVHpwv2BpqV7mTqG7t69Rr7D9qG/RonlHO2Zur7hThPlKb2a5GTGqA0W0ecYv7 v1mZoFnRikbT29HCuzjF71Y/znkhTrNGxIzaiq9fgPlgfH4pqPacQuPgH4F25w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=G0k6dVm8; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -8.80 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=G0k6dVm8; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 2527C3DB4F X-Spam-Score: -8.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: kBjz4wZqpzz+ Tim Cross writes: > I'm not sure I really understand the exact goal you have here. To me, it > feels like yet another input selection/menu/completion scheme and I'm > not clear on how it will be an improvement or why do something > 'different' in org compared to other modes etc. However, I also don't > have any problems using the existing capture interface, so perhaps I > just don't have the number or complexity of capture choices to expose > issues/limitations wiht the existing approach. > > The main 'concern' (well, not really a concern, but ....) I have is that > Emacs already has far too many solutions along this line, which makes it > harder to get a consistent UI. I also feel this is one of those areas > which appears to be really easy to 'fix' or improve, but also has a lot > of hidden complexity which only becomes evident once lots of different > users and workflows try to use it. Let me clarify my vision of this thread. 1. Arthur is interested to implement something similar to org-capture menu. We can help him with this regardless of our stance on whether to include the result into Org. 2. Org mode has multiple implementations of menu. Menus for org-capture, org-export, org-todo, org-set-tags-command, and org-agenda are all implemented independently creating redundancy in our codebase. 3. Because of the redundancy, there has been a proposal in the past to switch from our existing menus to transient. However, it will be a breaking change. We would prefer to support old menus as well (at least for a handful of years) 4. If Arthur's implementation turns out sufficient to replicate the "look and feel" or our existing menus, we can use it instead. This will at least reduce the amount of menu code in Org. We can also take this opportunity to make the menu backend selectable: the old menus, Arthur's menu backend, transient. Then, we can eventually drop the old menus backend and leave Arthur's + transient. They will be much easier to maintain, especially if Arthur's implementation can be distributed as separate package (even if not, one menu implementation is easier than multiple that we have now). Best, Ihor