From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QKuxKyqwRGcH6QAAqHPOHw:P1 (envelope-from ) for ; Mon, 25 Nov 2024 17:13:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id QKuxKyqwRGcH6QAAqHPOHw (envelope-from ) for ; Mon, 25 Nov 2024 18:13:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SjN3KNHc; 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-Seal: i=1; s=key1; d=yhetil.org; t=1732554794; a=rsa-sha256; cv=none; b=oJ7rbx6lWVEr2SAAb9wTPQk6a0DIMibKHY/xmKEgqR9h+FFDSQP6/iOUQOaPHt+kSrQH7V ONQPTbTnJrSm3/fatXY2FXxNt95r424lwaF2cc3f9/xQN75M9RdGVArgXXogQs8Fwpa2R7 buOvR/X42NTlBXy2Z+XEtkiOzIhhcoVVSLc6t7JV9LVzRFeuOjF2Juv/taImqSQDQ1wpdt PyGP/6OF76KaoZOacuFfcCY1hyaG4v2OnbqoWX0a9njet0LMcfhHr2YU3xtWTc9iwMeh2N wPnnIm3NCy+rAshjzKSograkILevgErJXn0xf5rv1zFwdRX4gav3K8rTItOE1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SjN3KNHc; 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=1732554794; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=A3bEsFhcI6gUZQmV6FM5U/PnYC5IZiH7wpgUwohYkEY=; b=irYl7dyP1dw8Naelcq29Qg7uhyJ5BHSO/qiz0iuRfKruWaBnJN/0NFZxgA73mrRmTjbdB+ 7S432UBvl5EoeauOPAx2IhD1L5ZMIpmJOeZnN3jZQS5tFRLEgbUWASxuIaGNjFyHsAcCd7 /uwtJO9s/AHvCNOlz/J28LjgbY8OSaq/VYWzZSNQEk2rifvsrNlWE9boxt2RDnfyyQYzw+ 75rKA7LljADUbORDayxwPGbogXSfmxC9GIM0RqiXaUSyURDcM0SkZDEz9rfAVYuJAuAOdH A2k2d6pyWRg4HPLeOXCt2K/Xq4R4Crml8eHb28COGRfKXbqXfZ/ymDxRh9PS5w== 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 3C30885ECC for ; Mon, 25 Nov 2024 18:13:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFcdO-0000a0-Gz; Mon, 25 Nov 2024 12:12:26 -0500 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 1tFcdN-0000Zp-K8 for emacs-orgmode@gnu.org; Mon, 25 Nov 2024 12:12:25 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFcdL-0002mU-9G for emacs-orgmode@gnu.org; Mon, 25 Nov 2024 12:12:25 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3D48C240027 for ; Mon, 25 Nov 2024 18:12:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1732554739; bh=A3bEsFhcI6gUZQmV6FM5U/PnYC5IZiH7wpgUwohYkEY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=SjN3KNHcsWTA5ddAlkKRIO8BAnVz2NFe/7UV3+ym8ZluI8E66ffZqlzn7rGz0vnFZ +kOsGQccx7sm8DrtXz20dz4KkN8131JB6Kvn2pgt3Elw+O0BaVb/AriSAelUHxS8Nm Jl8HBaFqqlRaKA+WPUoevdBKeAyHsihFvd/2MbwHayXmPOrDb5BDej4h75+ILj5/IE 1RGJ/0oumu3h50om8HndBcHPhjvZ2cdu6z9yQqAQ8QDS/cZJFn1DyhjaZ/Z2hHcqW1 q7X8orqnSLrDv8xd2UUSRhdZS2sGpemj1zprxLwRLEdmazTFqoJoH7Mp1ZpQI1T8gG jWV1G5rkCqXwg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XxshL4dLdz9rxG; Mon, 25 Nov 2024 18:12:18 +0100 (CET) From: Ihor Radchenko To: Jan Rehders Cc: emacs-orgmode@gnu.org Subject: Re: Contributing org-menu (using transient) to Orgmode? In-Reply-To: <84EE7FC0-B04F-4413-9930-67C7BCF3B9F6@sheijk.net> References: <6F54EA7A-17B7-4A3B-B2DC-DAC0894E486D@sheijk.net> <87serh99dr.fsf@localhost> <84EE7FC0-B04F-4413-9930-67C7BCF3B9F6@sheijk.net> Date: Mon, 25 Nov 2024 17:13:47 +0000 Message-ID: <87o723s0c4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=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: -0.81 X-Spam-Score: -0.81 X-Migadu-Queue-Id: 3C30885ECC X-Migadu-Scanner: mx12.migadu.com X-TUID: LmZ9Gz4YR1bx Jan Rehders writes: >> More generally, we have previously discussed the idea of generic help >> menu for major modes. See https://list.orgmode.org/orgmode/87a5oayblv.fs= f@gmail.com/ >> I personally like the idea of some kind of help menu, but I have doubts >> that transient is best-suited for the task. Ideally, help menus should >> help with the existing key bindings rather than introducing brand >> new. AFAIK, transient _always_ introduces new bindings. > > I think which-key has been added to Emacs, that one seems like a good fit which-key only provides key binding + symbol. No description and no groupin= g. >> org-speed-commands > > org-menu works on many more elements than headings. Table cells, list ite= ms, dates, normal text formatting, etc. See the transient-insert-suffix 'or= g-menu at the end of the file following :if blocks for conditional enabling= commands for various elements. This is as ad-hoc as Orgmodes keybinding ov= erloads depending on context (which might also be a good thing to generalis= e it, like some commercial text editors did/do) org-speed-commands can work outside headings as well. See `org-use-speed-commands'. >> I imagine splitting it into several files which follow Org=E2=80=99s >> existing structure might make sense as well as making it easier to >> add new parts to it. I don=E2=80=99t know how to best do that, yet. I do believe that the best way to integrate menus like in your package is extending org-speed-commands functionality. For example, we can introduce something like `org-speed-commands-toggle' that will toggle the transient menu. Does it make sense? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at