From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 gPTrNR+doGL2hQEAbAwnHQ (envelope-from ) for ; Wed, 08 Jun 2022 14:59:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cBr0NR+doGLtQAAA9RJhRA (envelope-from ) for ; Wed, 08 Jun 2022 14:59:11 +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 7CC683D6B9 for ; Wed, 8 Jun 2022 14:59:11 +0200 (CEST) Received: from localhost ([::1]:34598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyvHB-0003Ap-AV for larch@yhetil.org; Wed, 08 Jun 2022 08:59:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyutL-000387-Gr for emacs-orgmode@gnu.org; Wed, 08 Jun 2022 08:34:31 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:32785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyutJ-000617-VW for emacs-orgmode@gnu.org; Wed, 08 Jun 2022 08:34:31 -0400 Received: by mail-pj1-x1031.google.com with SMTP id hv24-20020a17090ae41800b001e33eebdb5dso15947480pjb.0 for ; Wed, 08 Jun 2022 05:34:29 -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=hFBrZhLf9moPX9MAYr52Z6+Txnit+XHSY+MCjpimGCg=; b=fZAPMj7J5rGjNw58zCl+qQSrq94JNry9KllZS+yNGsxdTnmEH/eaN06N1uoag0xhqu BRjm8GaElOrCE5Mzw7L7fctHIGAulwrxfsEpPHCdvp/oQEAwh+CuCfRR1BneJPzGP88k LaZ/JA8cOY5M7RhcaEMGDnNM6JD486VYBOctK7niuCAox+foKA3ShejzfGEkPHsgNVEs 1CElamli3LUeK56s9WrOfWY22G4RQCcB7/o2SMpvXDY68wo4/XxRJb2WbyJ878Hc2jH2 4UGvrDk6UkTV1jbAuCH7qpMOdZ+EW+78CNNC/7s3bsjw0AOJeP6L3HxnxP/SZbHwLUpT BGOQ== 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=hFBrZhLf9moPX9MAYr52Z6+Txnit+XHSY+MCjpimGCg=; b=hBZbXQAd9iw1aWKu07kbsDkthkaMGvTr1HKP4wgQeb/zxXKslZOkNmDMG1c7wQfdUH gKhCaPZ5tizZxNu7II+ymXZ1mbCJfpQTEYjEiQ6DukY/3+ypxPOcJ4VrQJzCEsxjKLjY hhRA7PITdHyw3idqcirYFhAYnxZGFQrf/Eati1XuSH7oM6ONA4VA2+VuZjkZ3IkAUGdv JLZnLq3maoDFjGYsttJKwG1HkCE/EYWOU5nJa6ogElVFl/pAEge0EWtVs5fX2v6Pevd9 2J5lWeXK8cyfvJjyz4fbG26RueCpJHj9AZeQI2DEE2qFY0ahyDVy8Fzly45iBQqsktb7 dJBw== X-Gm-Message-State: AOAM530LT5LHJgcqXQbSv+eoA+qt4sC4evpKNxhwvoGltY+A0VQSOIcW 145GPLoJbq5w7t9OpSeEqhg= X-Google-Smtp-Source: ABdhPJwP8EYj9PgfCNziJPwj4vUH22PQYblaHKN1yDbcoDHxV+uUfB58mEdf7pw55S5nYRqAB4sbeg== X-Received: by 2002:a17:902:bf45:b0:15c:df47:3d6 with SMTP id u5-20020a170902bf4500b0015cdf4703d6mr33353190pls.58.1654691668474; Wed, 08 Jun 2022 05:34:28 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id y5-20020a056a00180500b0051bc36b7995sm13410696pfa.62.2022.06.08.05.34.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 05:34:27 -0700 (PDT) From: Ihor Radchenko To: Arthur Miller Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: Proposal: 'executable' org-capture-templaes In-Reply-To: References: <87mtf3tui1.fsf@localhost> <87pmjyco0x.fsf@localhost> <87fskrobiw.fsf@localhost> <87a6ay1enh.fsf@localhost> Date: Wed, 08 Jun 2022 20:35:05 +0800 Message-ID: <87leu7s58m.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1031.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=1654693151; 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=hFBrZhLf9moPX9MAYr52Z6+Txnit+XHSY+MCjpimGCg=; b=HHAgC7AutcpYouv6Us0hoz9clWkkpHkH+UrWxoa/UUfPLkiQbJqvb+3ez2fasWwyElU8iK 09YBlAj8QIsOpfUfEcPu25V898TFrBG35D7RJvaWHp8/TXn4ngJgKt6Apu3RIiQc7a39a/ pZqlr7BB2efzFAJLB9dRskL5NwrAaqzT/K3MaHuV9AgGE/XLmldKCSxZSkHZj3JXglz+zY kq1KTXNOukH8zYtsFWtFeA82BZJs378hLW6N3DQwoWQn+w5yRCCiuMYikjmViwZR5rzxAd yUx8a/KT1/1xn2Q+4jCPxJDyDpy7Lz39ZGH+6lb6YIkOEtI5I0dskzCQ01ZpEw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654693151; a=rsa-sha256; cv=none; b=g3HfGjNp7e+1Bq0Wo90QmZ4n0t91tWE/kWIsr6l6vGGgvJjcRLy+XwLTAuaGBJNcbZ0mer BDW8tEdcpukHaWa/pP87gJ2xXtEpIl1o171EO/Cilw9JPY+pWhIhJvhdCTWFUNF9qUpq7X LfXYNODbroIezRvDx0QmvPuUIzrJ64nojpRYUp+48qgSvxb2fLeP4X05PhEuY3IKRkhhxs ZiQqYXJrWVqridapvKtObgo811PW/j5BEdWSOOIub9CbCkegnlMs9FPcHoqJlAtn43NExD V7CvoXniyZYjo+Zb2ZdY2PfVHsQZSqYcfR/mMKSzLOypjjpa1QD2s+bZfge53A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fZAPMj7J; 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: -9.30 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fZAPMj7J; 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: 7CC683D6B9 X-Spam-Score: -9.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: /hHrWQ4OOJyl Arthur Miller writes: > The command will then make a temporary buffer listing all entries > that can be selected with a single key, and all the single key > prefixes. When you press the key for a single-letter entry, it is selected. > When you press a prefix key, the commands (and maybe further prefixes) > under this key will be shown and offered for selection. Is there a way to select an entry without exiting the menu? What I have in mind is C-c C-e interface where we have on/off switches to control other sub-menus. See, Body-only, Export scope, etc Also, note the fontification. I guess it will also be possible in your menu generator if we provide propertized strings. Selecting a group may also echo the description to minibuffer (as Tim Cross suggested). Finally, you are only allowing a single key selectors. What about C-key or M-key? > I have paramterized decorator character for shortcut keys as they appear in the > buffer, org-capture uses "[]", as well as menu separator, which is currently > hard-coded in org-capture More generally, it can be a function to create the decorator. > , and I am currently trying to implement horizontal > layout, where menus are stacked from left to right. Please refer to org-fast-tag-selection and org-fast-todo-selection. > I also have a not so nice > bug when drawing nested menu that it leaves undesired space where menus not > visible after descension into current are; I have to redraw the entire menu but > haven't yet implemented it so I don't want to post a demo yet. But before I fix > redrawing and implement horizontal layout, I would like to switch to the > different model of interaction and use ordinary mode map idioms instead of > blocking read key. Since I need to rework current prototype for the re-drawing > part, I can as well rework it to skip read-key at the same time. Since no details are given, I cannot provide any help here. So, good luck :) Best, Ihor